Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.0009139/0.0009136, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005896/0.005896, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.234/1.234, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1444/0.1444, allocations: 9.097 MB / 300.5 MB, free: 2.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002901/0.0002902, allocations: 8.188 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08468/0.08499, allocations: 52.43 MB / 416.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.1672/0.2523, allocations: 30 MB / 446.2 MB, free: 24.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.2634, allocations: 6.752 MB / 453 MB, free: 21.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004546/0.268, allocations: 114.2 kB / 453.1 MB, free: 21.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007709/0.2687, allocations: 306.3 kB / 453.4 MB, free: 21.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.2714, allocations: 1.332 MB / 454.7 MB, free: 20.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.2718, allocations: 113.5 kB / 454.8 MB, free: 20.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002343/0.2741, allocations: 3.534 MB / 458.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008028/0.2749, allocations: 0.824 MB / 459.2 MB, free: 19.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006628/0.2756, allocations: 0.7597 MB / 460 MB, free: 18.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.2767, allocations: 1.316 MB / 461.3 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002159/0.2769, allocations: 131.7 kB / 461.4 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000981/0.2779, allocations: 0.7658 MB / 462.2 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006492/0.2786, allocations: 1.159 MB / 463.3 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008304/0.2794, allocations: 1.503 MB / 464.8 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002732/0.2821, allocations: 4.535 MB / 469.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2822, allocations: 0 / 469.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2822, allocations: 0 / 469.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.116e-05/0.2823, allocations: 0 / 469.4 MB, free: 15.36 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.007513/0.2898, allocations: 3.712 MB / 473.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2898, allocations: 10.16 kB / 473.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007881/0.2906, allocations: 0.5457 MB / 473.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006525/0.2972, allocations: 1.808 MB / 475.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.2993, allocations: 1.355 MB / 476.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.2994, allocations: 156.5 kB / 476.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004384/0.2999, allocations: 197.9 kB / 477.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01145/0.3113, allocations: 8.255 MB / 485.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-05/0.3114, allocations: 22.59 kB / 485.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.3117, allocations: 93.39 kB / 485.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.3146, allocations: 1.907 MB / 487.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.3259, allocations: 7.42 MB / 494.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02868/0.3546, allocations: 25.63 MB / 0.5083 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005641/0.3603, allocations: 2.617 MB / 0.5108 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3615, allocations: 0.9118 MB / 0.5117 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005488/0.367, allocations: 5.099 MB / 0.5167 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3671, allocations: 43.56 kB / 0.5167 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.066e-06/0.3671, allocations: 0 / 0.5167 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01127/0.3784, allocations: 5.467 MB / 0.5221 GB, free: 11.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.3784, allocations: 76.7 kB / 0.5221 GB, free: 11.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003185/0.3816, allocations: 2.611 MB / 0.5247 GB, free: 8.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.3818, allocations: 45.7 kB / 0.5247 GB, free: 8.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/0.383, allocations: 2.097 MB / 0.5268 GB, free: 6.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004957/0.3835, allocations: 0.6476 MB / 0.5274 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003744/0.3839, allocations: 346.9 kB / 0.5277 GB, free: 5.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.403e-05/0.3839, allocations: 301.1 kB / 0.528 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.3859, allocations: 1.374 MB / 0.5294 GB, free: 3.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003252/0.3892, allocations: 3.621 MB / 0.5329 GB, free: 15.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/0.3947, allocations: 5.423 MB / 0.5382 GB, free: 8.629 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.492e-05/0.3948, allocations: 23.94 kB / 0.5382 GB, free: 8.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007859/0.4026, allocations: 5.217 MB / 0.5433 GB, free: 3.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.477e-05/0.4027, allocations: 45.28 kB / 0.5434 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.63e-05/0.4028, allocations: 80.28 kB / 0.5434 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.4036, allocations: 356.6 kB / 0.5438 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/0.4061, allocations: 0.9203 MB / 0.5447 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004449/0.4106, allocations: 3.836 MB / 0.5484 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/0.4129, allocations: 199.9 kB / 0.5486 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.4132, allocations: 251.9 kB / 0.5489 GB, free: 13.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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 (498): * Single equations (assignments): 493 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002125/0.4153, allocations: 1.611 MB / 0.5504 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.4156, allocations: 229 kB / 0.5507 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/0.4191, allocations: 2.334 MB / 0.5529 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/0.4192, allocations: 31.97 kB / 0.553 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4192, allocations: 4 kB / 0.553 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.4193, allocations: 3.984 kB / 0.553 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009234/0.4285, allocations: 6.494 MB / 0.5593 GB, free: 2.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4285, allocations: 8.094 kB / 0.5593 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008573/0.4294, allocations: 243.7 kB / 0.5596 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006324/0.43, allocations: 258.8 kB / 0.5598 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.472e-05/0.4301, allocations: 35.98 kB / 0.5598 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00341/0.4336, allocations: 3.149 MB / 0.5629 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4336, allocations: 11.88 kB / 0.5629 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.4384, allocations: 3.613 MB / 0.5664 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005991/0.439, allocations: 322.1 kB / 0.5668 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.4393, allocations: 32 kB / 0.5668 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007924/0.4401, allocations: 75.91 kB / 0.5669 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.4403, allocations: 109 kB / 0.567 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.5e-05/0.4404, allocations: 51.98 kB / 0.567 GB, free: 10.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002344/0.4427, allocations: 1.676 MB / 0.5686 GB, free: 8.891 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4427, allocations: 0 / 0.5686 GB, free: 8.891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002663/0.4454, allocations: 0.7265 MB / 0.5694 GB, free: 8.164 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004963/0.4504, allocations: 4.249 MB / 0.5735 GB, free: 3.836 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005007/0.4554, allocations: 3.415 MB / 0.5768 GB, free: 436 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.4554, allocations: 0 / 0.5768 GB, free: 436 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1678/0.6232, allocations: 1.158 MB / 0.578 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003262/0.6265, allocations: 372.7 kB / 0.5783 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03873/0.6652, allocations: 33.32 MB / 0.6109 GB, free: 84.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/0.6676, allocations: 2.618 MB / 0.6134 GB, free: 83.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002756/0.6704, allocations: 1.278 MB / 0.6147 GB, free: 83.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/0.6717, allocations: 1.352 MB / 0.616 GB, free: 82.14 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6717, allocations: 2.188 kB / 0.616 GB, free: 82.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06192/0.7337, allocations: 48.82 MB / 0.6637 GB, free: 49.08 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001234/0.7338, allocations: 207.3 kB / 0.6639 GB, free: 48.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.355, allocations: 0 / 0.6639 GB, free: 48.83 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)