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.001123/0.001123, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001285/0.001285, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.324/1.324, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1587/0.1587, allocations: 9.097 MB / 299.2 MB, free: 1.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 67.89 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.0988, allocations: 51.43 MB / 413 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.1914/0.2902, allocations: 28.24 MB / 441.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.3017, allocations: 6.202 MB / 447.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005702/0.3075, allocations: 101.8 kB / 447.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.3087, allocations: 332.5 kB / 447.8 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003217/0.312, allocations: 1.309 MB / 449.1 MB, free: 23.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.3125, allocations: 147.3 kB / 449.3 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002757/0.3153, allocations: 2.738 MB / 452 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.3165, allocations: 0.9825 MB / 453 MB, free: 21.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.3176, allocations: 0.9743 MB / 454 MB, free: 21.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.3192, allocations: 1.52 MB / 455.5 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004594/0.3197, allocations: 247.2 kB / 455.7 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.3211, allocations: 0.852 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009501/0.3221, allocations: 1.342 MB / 457.9 MB, free: 19.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.3233, allocations: 1.72 MB / 459.6 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004576/0.3279, allocations: 5.135 MB / 464.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3279, allocations: 0 / 464.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3279, allocations: 10.94 kB / 464.8 MB, free: 16.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001417/0.3281, allocations: 0 / 464.8 MB, free: 16.62 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.006844/0.3349, allocations: 3.596 MB / 468.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.335, allocations: 9 kB / 468.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006884/0.3357, allocations: 0.596 MB / 469 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00659/0.3423, allocations: 1.843 MB / 470.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.3454, allocations: 1.425 MB / 472.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3456, allocations: 168 kB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004694/0.3461, allocations: 215.3 kB / 472.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/0.3607, allocations: 8.669 MB / 481.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.3608, allocations: 27.41 kB / 481.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006928/0.3615, allocations: 107 kB / 481.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005668/0.3672, allocations: 2.085 MB / 483.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02262/0.3899, allocations: 7.508 MB / 491 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04186/0.4318, allocations: 27.08 MB / 0.506 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00492/0.4367, allocations: 2.179 MB / 0.5081 GB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/0.4385, allocations: 0.9355 MB / 0.509 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009932/0.4485, allocations: 5.577 MB / 0.5145 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.4485, allocations: 43.56 kB / 0.5145 GB, free: 1.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.248e-06/0.4485, allocations: 0 / 0.5145 GB, free: 1.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01469/0.4632, allocations: 6.983 MB / 0.5213 GB, free: 10.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.4633, allocations: 64.41 kB / 0.5214 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/0.4686, allocations: 2.939 MB / 0.5242 GB, free: 7.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001896/0.4689, allocations: 45.7 kB / 0.5243 GB, free: 7.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001702/0.4706, allocations: 2.352 MB / 0.5266 GB, free: 4.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006322/0.4712, allocations: 0.5207 MB / 0.5271 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/0.4728, allocations: 0.8492 MB / 0.5279 GB, free: 3.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4729, allocations: 301.1 kB / 0.5282 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/0.4754, allocations: 1.351 MB / 0.5295 GB, free: 1.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00403/0.4794, allocations: 3.799 MB / 0.5332 GB, free: 12.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006483/0.4859, allocations: 5.49 MB / 0.5386 GB, free: 5.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.758e-05/0.486, allocations: 27.94 kB / 0.5386 GB, free: 5.859 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009671/0.4957, allocations: 5.614 MB / 0.5441 GB, free: 156 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.358e-05/0.4958, allocations: 48 kB / 0.5442 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/0.496, allocations: 88 kB / 0.5442 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008884/0.4969, allocations: 380 kB / 0.5446 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/0.4997, allocations: 0.9162 MB / 0.5455 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007289/0.507, allocations: 9.095 MB / 0.5544 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/0.5103, allocations: 219.9 kB / 0.5546 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007297/0.5111, allocations: 260 kB / 0.5548 GB, free: 4.461 MB / 430.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.003351/0.5144, allocations: 1.702 MB / 0.5565 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005349/0.515, allocations: 236.9 kB / 0.5567 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/0.5188, allocations: 2.243 MB / 0.5589 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001788/0.519, allocations: 39.97 kB / 0.559 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.5191, allocations: 4 kB / 0.559 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.5191, allocations: 7.969 kB / 0.559 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/0.5299, allocations: 5.789 MB / 0.5646 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.53, allocations: 4 kB / 0.5646 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/0.5307, allocations: 175.8 kB / 0.5648 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/0.5312, allocations: 170.4 kB / 0.565 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.669e-05/0.5313, allocations: 27.98 kB / 0.565 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004254/0.5356, allocations: 5.2 MB / 0.5701 GB, free: 4.184 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.5356, allocations: 7.938 kB / 0.5701 GB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004581/0.5402, allocations: 3.008 MB / 0.573 GB, free: 1.055 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007766/0.541, allocations: 314.1 kB / 0.5733 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005456/0.5416, allocations: 28.06 kB / 0.5733 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.5427, allocations: 63.98 kB / 0.5734 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5429, allocations: 80.78 kB / 0.5735 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.396e-05/0.543, allocations: 43.98 kB / 0.5735 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.1832/0.7262, allocations: 1.873 MB / 0.5753 GB, free: 122.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7263, allocations: 0 / 0.5753 GB, free: 122.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0037/0.73, allocations: 0.7239 MB / 0.576 GB, free: 122.4 MB / 446.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.004021/0.734, allocations: 3.647 MB / 0.5796 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006715/0.7408, allocations: 4.573 MB / 0.5841 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.7408, allocations: 0.75 kB / 0.5841 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.7422, allocations: 1.14 MB / 0.5852 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.7445, allocations: 415.5 kB / 0.5856 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04647/0.791, allocations: 34.77 MB / 0.6195 GB, free: 94.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002736/0.7938, allocations: 2.756 MB / 0.6222 GB, free: 93.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002953/0.7968, allocations: 1.212 MB / 0.6234 GB, free: 92.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.7983, allocations: 1.438 MB / 0.6248 GB, free: 91.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.623e-06/0.7983, allocations: 0 / 0.6248 GB, free: 91.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07224/0.8705, allocations: 49.6 MB / 0.6733 GB, free: 55.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.8707, allocations: 216.4 kB / 0.6735 GB, free: 54.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.153/4.023, allocations: 0 / 0.6735 GB, free: 54.88 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/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)