Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005823/0.005823, allocations: 96.7 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 197.9 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1912/0.1912, allocations: 9.104 MB / 299.6 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 56.12 kB / 414.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.281, allocations: 51.43 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.006005/0.2871, allocations: 5.836 MB / 471.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004236/0.2913, allocations: 2.035 MB / 473.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008516/0.2922, allocations: 24.19 kB / 473.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000712/0.2929, allocations: 261.9 kB / 473.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002555/0.2955, allocations: 1.095 MB / 474.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.2957, allocations: 37.66 kB / 474.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.2982, allocations: 1.891 MB / 476.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.2985, allocations: 149.1 kB / 476.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.2996, allocations: 0.6407 MB / 477.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.3007, allocations: 0.9952 MB / 478.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003337/0.3011, allocations: 176.5 kB / 478.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.3024, allocations: 0.7381 MB / 479.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007512/0.3032, allocations: 0.951 MB / 480.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008786/0.304, allocations: 1.194 MB / 481.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005484/0.3095, allocations: 4.073 MB / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.3096, allocations: 1.281 kB / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.3096, allocations: 0 / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001899/0.3098, allocations: 0 / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.008907/0.3187, allocations: 2.642 MB / 488.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.3188, allocations: 9.906 kB / 488.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006388/0.3194, allocations: 429.7 kB / 488.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00624/0.3257, allocations: 1.689 MB / 490.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.3278, allocations: 1.083 MB / 491.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.705e-05/0.3279, allocations: 101.9 kB / 491.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002712/0.3281, allocations: 135.2 kB / 491.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009415/0.3376, allocations: 6.499 MB / 498.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/0.3376, allocations: 11.94 kB / 498.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.3379, allocations: 67.88 kB / 498.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002861/0.3407, allocations: 1.621 MB / 499.9 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.352, allocations: 6.047 MB / 0.4941 GB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03121/0.3832, allocations: 18.18 MB / 0.5119 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/0.3862, allocations: 1.551 MB / 0.5134 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008793/0.3871, allocations: 0.5381 MB / 0.5139 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004065/0.3912, allocations: 2.144 MB / 0.516 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.3913, allocations: 38.98 kB / 0.516 GB, free: 12.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.906e-06/0.3913, allocations: 0 / 0.516 GB, free: 12.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003302/0.3946, allocations: 1.506 MB / 0.5175 GB, free: 10.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.3947, allocations: 63.78 kB / 0.5176 GB, free: 10.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00364/0.3983, allocations: 2.015 MB / 0.5195 GB, free: 8.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.027e-05/0.3984, allocations: 33.7 kB / 0.5196 GB, free: 8.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00147/0.3999, allocations: 1.713 MB / 0.5212 GB, free: 6.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.4002, allocations: 337.4 kB / 0.5216 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008446/0.4011, allocations: 0.5718 MB / 0.5221 GB, free: 6.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002201/0.4013, allocations: 361.9 kB / 0.5225 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/0.4031, allocations: 0.9227 MB / 0.5234 GB, free: 4.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003148/0.4063, allocations: 2.577 MB / 0.5259 GB, free: 1.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004946/0.4112, allocations: 3.723 MB / 0.5295 GB, free: 12.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-05/0.4113, allocations: 16 kB / 0.5295 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006275/0.4176, allocations: 3.436 MB / 0.5329 GB, free: 9.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.4177, allocations: 28 kB / 0.5329 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.321e-05/0.4177, allocations: 60 kB / 0.533 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.88e-05/0.4178, allocations: 76 kB / 0.5331 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.4196, allocations: 0.6126 MB / 0.5337 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.734e-05/0.4197, allocations: 119.5 kB / 0.5338 GB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/0.4218, allocations: 428.9 kB / 0.5342 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.422, allocations: 172 kB / 0.5343 GB, free: 7.914 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 330 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00221/0.4243, allocations: 1.301 MB / 0.5356 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.4246, allocations: 162.9 kB / 0.5358 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.4266, allocations: 1.063 MB / 0.5368 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.88e-05/0.4267, allocations: 23.92 kB / 0.5368 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4267, allocations: 0 / 0.5368 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.4267, allocations: 3.984 kB / 0.5368 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006315/0.4331, allocations: 3.588 MB / 0.5403 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.4331, allocations: 0 / 0.5403 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005188/0.4336, allocations: 111.8 kB / 0.5404 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.377e-06/0.4336, allocations: 4.281 kB / 0.5404 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.163e-05/0.4337, allocations: 16 kB / 0.5405 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.4337, allocations: 4 kB / 0.5405 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4337, allocations: 3.938 kB / 0.5405 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.4363, allocations: 1.749 MB / 0.5422 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000535/0.4369, allocations: 259.9 kB / 0.5424 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.4371, allocations: 8.25 kB / 0.5424 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005131/0.4376, allocations: 39.95 kB / 0.5425 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/0.4377, allocations: 36.39 kB / 0.5425 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-05/0.4378, allocations: 24 kB / 0.5425 GB, free: 15.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002105/0.4399, allocations: 1.313 MB / 0.5438 GB, free: 14.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4399, allocations: 0 / 0.5438 GB, free: 14.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002374/0.4423, allocations: 0.6386 MB / 0.5444 GB, free: 13.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003053/0.4453, allocations: 2.363 MB / 0.5467 GB, free: 11.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0037/0.449, allocations: 2.012 MB / 0.5487 GB, free: 9.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4491, allocations: 4.562 kB / 0.5487 GB, free: 9.016 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006918/0.4497, allocations: 478.5 kB / 0.5492 GB, free: 8.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.4513, allocations: 296.6 kB / 0.5494 GB, free: 8.266 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.4822, allocations: 20.06 MB / 0.569 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002572/0.4848, allocations: 2.172 MB / 0.5712 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002006/0.4868, allocations: 0.8851 MB / 0.572 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/0.4881, allocations: 0.9327 MB / 0.5729 GB, free: 14.03 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4882, allocations: 0 / 0.5729 GB, free: 14.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2863/0.7745, allocations: 33.42 MB / 0.6056 GB, free: 112.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.91, allocations: 7.875 kB / 0.6056 GB, free: 112.5 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)