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.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.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.001185/0.001185, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001308, allocations: 197 kB / 16.53 MB, free: 6.664 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2168/0.2168, allocations: 9.117 MB / 299.5 MB, free: 1.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 71.89 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.119, allocations: 51.43 MB / 413.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2375/0.3565, allocations: 9.543 MB / 423 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006436/0.363, allocations: 2.738 MB / 425.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.3652, allocations: 40.19 kB / 425.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.3666, allocations: 397.9 kB / 426.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004164/0.3709, allocations: 1.42 MB / 427.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006826/0.3716, allocations: 164.8 kB / 427.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003925/0.3755, allocations: 2.711 MB / 430.5 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.3769, allocations: 0.9531 MB / 431.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.3782, allocations: 0.9688 MB / 432.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.3796, allocations: 1.398 MB / 433.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003469/0.38, allocations: 248.4 kB / 434 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.3816, allocations: 0.8435 MB / 434.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000983/0.3826, allocations: 1.334 MB / 436.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.3838, allocations: 1.713 MB / 437.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004749/0.3886, allocations: 5.108 MB / 443 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.908e-06/0.3886, allocations: 9.062 kB / 443 MB, free: 30.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3886, allocations: 0 / 443 MB, free: 30.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001506/0.3888, allocations: 0 / 443 MB, free: 30.71 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.009081/0.3979, allocations: 3.603 MB / 446.6 MB, free: 28.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.398, allocations: 9.562 kB / 446.7 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001054/0.399, allocations: 0.5961 MB / 447.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006905/0.4059, allocations: 1.843 MB / 449.1 MB, free: 28.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.409, allocations: 1.417 MB / 450.5 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.4092, allocations: 173.3 kB / 450.7 MB, free: 27.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004262/0.4096, allocations: 216.9 kB / 450.9 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.4228, allocations: 8.675 MB / 459.6 MB, free: 23.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.24e-05/0.4229, allocations: 21.62 kB / 459.6 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/0.4233, allocations: 105.1 kB / 459.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003987/0.4272, allocations: 2.09 MB / 461.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.4456, allocations: 7.503 MB / 469.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04297/0.4886, allocations: 27.08 MB / 496.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004984/0.4936, allocations: 2.179 MB / 498.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.4953, allocations: 0.9421 MB / 499.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009877/0.5052, allocations: 5.564 MB / 0.4932 GB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.5053, allocations: 47.5 kB / 0.4933 GB, free: 6.242 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 5.821e-06/0.5053, allocations: 0 / 0.4933 GB, free: 6.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=135): time 0.01465/0.52, allocations: 6.993 MB / 0.5001 GB, free: 15.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/0.5201, allocations: 64.41 kB / 0.5001 GB, free: 15.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004741/0.5248, allocations: 2.939 MB / 0.503 GB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.525, allocations: 41.7 kB / 0.5031 GB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.5266, allocations: 2.357 MB / 0.5054 GB, free: 9.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004429/0.5271, allocations: 0.5095 MB / 0.5059 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/0.5282, allocations: 0.86 MB / 0.5067 GB, free: 8.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5283, allocations: 305.1 kB / 0.507 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002152/0.5304, allocations: 1.355 MB / 0.5083 GB, free: 6.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003955/0.5344, allocations: 3.788 MB / 0.512 GB, free: 1.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00698/0.5414, allocations: 5.487 MB / 0.5174 GB, free: 10.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.785e-05/0.5415, allocations: 28 kB / 0.5174 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009988/0.5515, allocations: 5.622 MB / 0.5229 GB, free: 5.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.59e-05/0.5516, allocations: 48.22 kB / 0.5229 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001795/0.5518, allocations: 84 kB / 0.523 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009652/0.5528, allocations: 388.9 kB / 0.5234 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002921/0.5557, allocations: 0.9162 MB / 0.5243 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008455/0.5642, allocations: 9.089 MB / 0.5332 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00397/0.5682, allocations: 222.1 kB / 0.5334 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009246/0.5691, allocations: 256 kB / 0.5336 GB, free: 9.473 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * 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 (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,11,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004067/0.5732, allocations: 1.705 MB / 0.5353 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007636/0.574, allocations: 240.8 kB / 0.5355 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004608/0.5786, allocations: 2.243 MB / 0.5377 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002297/0.5788, allocations: 42.45 kB / 0.5377 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/0.5789, allocations: 4 kB / 0.5377 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.5789, allocations: 3.984 kB / 0.5377 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/0.5905, allocations: 5.794 MB / 0.5434 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.5905, allocations: 4 kB / 0.5434 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007061/0.5912, allocations: 179.7 kB / 0.5436 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004692/0.5917, allocations: 166.9 kB / 0.5437 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.686e-05/0.5918, allocations: 24 kB / 0.5438 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004407/0.5962, allocations: 5.208 MB / 0.5488 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5962, allocations: 4 kB / 0.5488 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004752/0.601, allocations: 2.998 MB / 0.5518 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009028/0.6019, allocations: 322 kB / 0.5521 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002883/0.6022, allocations: 24 kB / 0.5521 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008418/0.6031, allocations: 59.92 kB / 0.5522 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.6033, allocations: 80.91 kB / 0.5522 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/0.6034, allocations: 42.58 kB / 0.5523 GB, free: 5.574 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003182/0.6065, allocations: 1.878 MB / 0.5541 GB, free: 3.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6066, allocations: 0 / 0.5541 GB, free: 3.688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004915/0.6115, allocations: 0.7267 MB / 0.5548 GB, free: 2.961 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005471/0.617, allocations: 3.653 MB / 0.5584 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008175/0.6252, allocations: 4.566 MB / 0.5628 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.6252, allocations: 5.625 kB / 0.5629 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.6268, allocations: 1.139 MB / 0.564 GB, free: 9.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.6292, allocations: 413.9 kB / 0.5644 GB, free: 9.027 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2747/0.9039, allocations: 33.14 MB / 0.5967 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002814/0.9067, allocations: 2.749 MB / 0.5994 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00431/0.9111, allocations: 1.213 MB / 0.6006 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003265/0.9144, allocations: 1.447 MB / 0.602 GB, free: 127.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/0.9144, allocations: 0 / 0.602 GB, free: 127.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1568/1.071, allocations: 49.66 MB / 0.6505 GB, free: 107.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/12.44, allocations: 14.06 kB / 0.6505 GB, free: 107.7 MB / 462.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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)