Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.0009922/0.0009922, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001013/0.001014, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.268/1.268, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1469/0.1469, allocations: 9.098 MB / 299 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.91 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09306, allocations: 51.44 MB / 412.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.1655/0.2586, allocations: 19.4 MB / 432.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007553/0.2662, allocations: 4.608 MB / 436.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00271/0.2689, allocations: 69.41 kB / 436.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007832/0.2697, allocations: 299.6 kB / 437.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002163/0.2719, allocations: 1.232 MB / 438.4 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.2722, allocations: 108.6 kB / 438.5 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.2742, allocations: 3.411 MB / 441.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006186/0.2748, allocations: 0.743 MB / 442.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.2753, allocations: 0.7278 MB / 443.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009661/0.2763, allocations: 1.27 MB / 444.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.2765, allocations: 127.3 kB / 444.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009633/0.2775, allocations: 0.7548 MB / 445.5 MB, free: 28.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006219/0.2781, allocations: 1.134 MB / 446.7 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008167/0.2789, allocations: 1.458 MB / 448.1 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00272/0.2817, allocations: 4.569 MB / 452.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.2817, allocations: 0 / 452.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2817, allocations: 0 / 452.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.115e-05/0.2817, allocations: 0.75 kB / 452.7 MB, free: 25.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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.00454/0.2863, allocations: 3.26 MB / 455.9 MB, free: 23.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2863, allocations: 14 kB / 456 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004713/0.2868, allocations: 0.5461 MB / 456.5 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005849/0.2927, allocations: 1.76 MB / 458.3 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.2943, allocations: 1.293 MB / 459.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.2944, allocations: 146.4 kB / 459.7 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003024/0.2947, allocations: 187.3 kB / 459.9 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00937/0.3041, allocations: 8.065 MB / 468 MB, free: 18.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-05/0.3042, allocations: 19.91 kB / 468 MB, free: 18.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/0.3045, allocations: 92.77 kB / 468.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.3077, allocations: 2 MB / 470.1 MB, free: 17.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.3204, allocations: 7.147 MB / 477.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03085/0.3513, allocations: 24.14 MB / 0.4896 GB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004105/0.3555, allocations: 2.155 MB / 0.4917 GB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.3567, allocations: 0.718 MB / 0.4924 GB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005732/0.3625, allocations: 3.987 MB / 0.4963 GB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.3625, allocations: 43.56 kB / 0.4963 GB, free: 4.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.276e-06/0.3625, allocations: 0 / 0.4963 GB, free: 4.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009235/0.3718, allocations: 4.377 MB / 0.5006 GB, free: 15.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.3718, allocations: 64.41 kB / 0.5007 GB, free: 15.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/0.3755, allocations: 2.581 MB / 0.5032 GB, free: 12.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.389e-05/0.3756, allocations: 41.7 kB / 0.5032 GB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.3769, allocations: 2.112 MB / 0.5053 GB, free: 10.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.3773, allocations: 454.1 kB / 0.5057 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000975/0.3783, allocations: 0.7617 MB / 0.5065 GB, free: 9.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.983e-05/0.3784, allocations: 301.1 kB / 0.5068 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/0.3802, allocations: 1.167 MB / 0.5079 GB, free: 8.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/0.3833, allocations: 3.312 MB / 0.5111 GB, free: 3.738 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005011/0.3883, allocations: 4.79 MB / 0.5158 GB, free: 13.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.285e-05/0.3884, allocations: 31.88 kB / 0.5158 GB, free: 13.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006892/0.3953, allocations: 4.427 MB / 0.5202 GB, free: 9.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.3954, allocations: 36 kB / 0.5202 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-05/0.3955, allocations: 76 kB / 0.5203 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.571e-05/0.3956, allocations: 100 kB / 0.5204 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/0.3981, allocations: 0.8428 MB / 0.5212 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001211/0.3982, allocations: 155.6 kB / 0.5213 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/0.4005, allocations: 177.4 kB / 0.5215 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003022/0.4008, allocations: 228 kB / 0.5217 GB, free: 7.828 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * 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.002172/0.403, allocations: 1.568 MB / 0.5233 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.4033, allocations: 209.3 kB / 0.5235 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.4057, allocations: 1.414 MB / 0.5248 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001416/0.4059, allocations: 35.17 kB / 0.5249 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4059, allocations: 0 / 0.5249 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4059, allocations: 4.266 kB / 0.5249 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007814/0.4137, allocations: 4.781 MB / 0.5295 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4137, allocations: 4 kB / 0.5295 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008237/0.4146, allocations: 192.3 kB / 0.5297 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.441e-05/0.4146, allocations: 12 kB / 0.5297 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.999e-05/0.4147, allocations: 31.89 kB / 0.5298 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-05/0.4147, allocations: 11.94 kB / 0.5298 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4147, allocations: 8 kB / 0.5298 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003176/0.4179, allocations: 2.358 MB / 0.5321 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004817/0.4184, allocations: 298.4 kB / 0.5324 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/0.4187, allocations: 20 kB / 0.5324 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000829/0.4196, allocations: 55.92 kB / 0.5325 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.4197, allocations: 76.39 kB / 0.5325 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/0.4198, allocations: 40 kB / 0.5326 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002323/0.4221, allocations: 1.655 MB / 0.5342 GB, free: 10.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4221, allocations: 0 / 0.5342 GB, free: 10.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002522/0.4247, allocations: 0.6188 MB / 0.5348 GB, free: 10.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * 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.00355/0.4282, allocations: 3.002 MB / 0.5377 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003975/0.4322, allocations: 2.61 MB / 0.5403 GB, free: 4.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4322, allocations: 0 / 0.5403 GB, free: 4.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008746/0.4331, allocations: 0.6303 MB / 0.5409 GB, free: 3.863 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.435, allocations: 361.7 kB / 0.5412 GB, free: 3.516 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04249/0.4775, allocations: 29.57 MB / 0.5701 GB, free: 2.133 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003291/0.4808, allocations: 2.559 MB / 0.5726 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002852/0.4837, allocations: 1.125 MB / 0.5737 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001715/0.4854, allocations: 1.245 MB / 0.5749 GB, free: 13.16 MB / 462.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4854, allocations: 0 / 0.5749 GB, free: 13.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2134/0.6988, allocations: 42.17 MB / 0.6161 GB, free: 136 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001225/0.699, allocations: 194.3 kB / 0.6163 GB, free: 135.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/3.243, allocations: 4 kB / 0.6163 GB, free: 135.8 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)