Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",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.001137/0.001137, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00108/0.00108, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2345/0.2345, allocations: 9.096 MB / 300.1 MB, free: 2.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003725, allocations: 8 kB / 363.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1315, allocations: 52.42 MB / 415.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2725/0.4041, allocations: 24.02 MB / 439.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.4197, allocations: 6.211 MB / 445.7 MB, free: 26.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005497/0.4252, allocations: 103.9 kB / 445.8 MB, free: 26.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004445/0.4297, allocations: 1.144 MB / 447 MB, free: 26.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01266/0.4424, allocations: 3.493 MB / 450.5 MB, free: 24.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002665/0.4451, allocations: 144.8 kB / 450.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005629/0.4508, allocations: 1.542 MB / 452.2 MB, free: 23.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002314/0.4531, allocations: 0.8599 MB / 453 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.4545, allocations: 0.7274 MB / 453.8 MB, free: 23.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.4558, allocations: 1.04 MB / 454.8 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003885/0.4562, allocations: 148.3 kB / 454.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.4576, allocations: 0.6507 MB / 455.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009015/0.4585, allocations: 1.134 MB / 456.7 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005944/0.4591, allocations: 0.6915 MB / 457.4 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.4632, allocations: 3.936 MB / 461.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4632, allocations: 0 / 461.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4632, allocations: 0 / 461.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001433/0.4634, allocations: 0 / 461.4 MB, free: 20.69 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.006771/0.4702, allocations: 2.989 MB / 464.3 MB, free: 18.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.4702, allocations: 8.938 kB / 464.3 MB, free: 18.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009099/0.4711, allocations: 0.5956 MB / 464.9 MB, free: 18.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00771/0.4789, allocations: 2.245 MB / 467.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004487/0.4834, allocations: 1.396 MB / 468.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.4837, allocations: 165 kB / 468.7 MB, free: 17.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001303/0.485, allocations: 221.6 kB / 469 MB, free: 17.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01787/0.5029, allocations: 8.682 MB / 477.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.091e-05/0.503, allocations: 22.2 kB / 477.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003562/0.5034, allocations: 100.2 kB / 477.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004/0.5074, allocations: 2.09 MB / 479.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01916/0.5266, allocations: 7.516 MB / 487.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04702/0.5736, allocations: 27.09 MB / 0.5024 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/0.5785, allocations: 2.172 MB / 0.5045 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00157/0.5801, allocations: 1.663 MB / 0.5061 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.5802, allocations: 43.56 kB / 0.5062 GB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=146): time 4.168e-06/0.5802, allocations: 0 / 0.5062 GB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=158): time 0.01603/0.5962, allocations: 7.914 MB / 0.5139 GB, free: 3.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.5963, allocations: 94.36 kB / 0.514 GB, free: 3.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/0.6006, allocations: 2.827 MB / 0.5168 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002292/0.6009, allocations: 45.7 kB / 0.5168 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001798/0.6027, allocations: 2.295 MB / 0.5191 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007417/0.6034, allocations: 0.5782 MB / 0.5196 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.6037, allocations: 88 kB / 0.5197 GB, free: 13.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000328/0.604, allocations: 491.4 kB / 0.5202 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/0.6064, allocations: 1.343 MB / 0.5215 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004046/0.6105, allocations: 3.764 MB / 0.5252 GB, free: 6.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003495/0.614, allocations: 2.234 MB / 0.5273 GB, free: 4.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.367e-05/0.6141, allocations: 24 kB / 0.5274 GB, free: 4.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=558) (initialization): time 0.009017/0.6231, allocations: 5.13 MB / 0.5324 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.544e-05/0.6232, allocations: 47.94 kB / 0.5324 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.654e-05/0.6233, allocations: 87.98 kB / 0.5325 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005444/0.6238, allocations: 236.8 kB / 0.5327 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/0.627, allocations: 0.9592 MB / 0.5337 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/0.6291, allocations: 2.08 MB / 0.5357 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.6326, allocations: 223.9 kB / 0.5359 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007668/0.6334, allocations: 263.9 kB / 0.5362 GB, free: 11.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 391 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[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 (523): * Single equations (assignments): 517 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003657/0.6371, allocations: 1.69 MB / 0.5378 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005063/0.6376, allocations: 240.9 kB / 0.538 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/0.6411, allocations: 2.107 MB / 0.5401 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000189/0.6413, allocations: 43.95 kB / 0.5401 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.6413, allocations: 0 / 0.5401 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.6413, allocations: 4.359 kB / 0.5401 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/0.6534, allocations: 6.447 MB / 0.5464 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/0.6535, allocations: 8 kB / 0.5464 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008956/0.6544, allocations: 227.8 kB / 0.5467 GB, free: 284 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000397/0.6548, allocations: 108.7 kB / 0.5468 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-05/0.6549, allocations: 39.98 kB / 0.5468 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.6571, allocations: 1.803 MB / 0.5486 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/0.6571, allocations: 11.94 kB / 0.5486 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005726/0.6628, allocations: 3.777 MB / 0.5523 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.664, allocations: 337.8 kB / 0.5526 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.6643, allocations: 39.94 kB / 0.5526 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009392/0.6653, allocations: 68 kB / 0.5527 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.6655, allocations: 100.8 kB / 0.5528 GB, free: 9.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6656, allocations: 55.98 kB / 0.5528 GB, free: 9.473 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003181/0.6688, allocations: 1.811 MB / 0.5546 GB, free: 7.652 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6688, allocations: 0 / 0.5546 GB, free: 7.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00395/0.6727, allocations: 0.7187 MB / 0.5553 GB, free: 6.934 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (127): * Single equations (assignments): 121 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006056/0.6788, allocations: 6.384 MB / 0.5615 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00585/0.6847, allocations: 3.245 MB / 0.5647 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.6847, allocations: 0 / 0.5647 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001565/0.6863, allocations: 0.9985 MB / 0.5657 GB, free: 12.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.6883, allocations: 373.7 kB / 0.566 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2854/0.9737, allocations: 81.3 MB / 0.6454 GB, free: 42.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/0.9765, allocations: 2.813 MB / 0.6482 GB, free: 41.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003134/0.9796, allocations: 1.274 MB / 0.6494 GB, free: 41.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/0.9814, allocations: 1.458 MB / 0.6509 GB, free: 41.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.223e-06/0.9814, allocations: 0 / 0.6509 GB, free: 41.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09125/1.073, allocations: 54.88 MB / 0.7044 GB, free: 11.53 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001223/1.073, allocations: 189.2 kB / 0.7046 GB, free: 11.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.183/4.256, allocations: 3.984 kB / 0.7046 GB, free: 11.28 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1) Environment - environmentSimulation: