Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",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.005961/0.005961, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.00152/0.001521, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04772/0.04772, allocations: 9.11 MB / 299.6 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 55.91 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08782/0.08914, allocations: 51.45 MB / 465.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007482/0.09666, allocations: 6.853 MB / 472.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004328/0.101, allocations: 2.338 MB / 474.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008957/0.102, allocations: 27.94 kB / 474.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.1028, allocations: 298.2 kB / 475.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.1057, allocations: 1.136 MB / 476.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003524/0.1061, allocations: 83.83 kB / 476.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002464/0.1086, allocations: 2.036 MB / 478.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004022/0.109, allocations: 175.1 kB / 478.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.1102, allocations: 0.7081 MB / 479.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.1117, allocations: 1.063 MB / 480.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000524/0.1123, allocations: 188 kB / 480.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.1138, allocations: 0.745 MB / 481.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.1149, allocations: 1.013 MB / 482.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001708/0.1166, allocations: 1.297 MB / 483.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005042/0.1217, allocations: 4.341 MB / 487.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1218, allocations: 0 / 487.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1218, allocations: 0 / 487.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00015/0.1219, allocations: 0 / 487.9 MB, free: 11.78 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.008978/0.1309, allocations: 3.597 MB / 491.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.131, allocations: 8.031 kB / 491.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001162/0.1321, allocations: 471.2 kB / 491.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006557/0.1387, allocations: 1.698 MB / 493.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/0.1412, allocations: 1.154 MB / 494.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.1413, allocations: 123 kB / 494.9 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006754/0.142, allocations: 148.2 kB / 495 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.1538, allocations: 7.054 MB / 0.4903 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.749e-05/0.1539, allocations: 15.88 kB / 0.4903 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005895/0.1545, allocations: 71.88 kB / 0.4904 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002938/0.1575, allocations: 1.722 MB / 0.4921 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01284/0.1704, allocations: 6.474 MB / 0.4984 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2314/0.4018, allocations: 20.87 MB / 0.5188 GB, free: 29.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/0.4067, allocations: 1.941 MB / 0.5207 GB, free: 28.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.4079, allocations: 0.595 MB / 0.5213 GB, free: 27.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005581/0.4136, allocations: 3.347 MB / 0.5245 GB, free: 25.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.4136, allocations: 42.41 kB / 0.5246 GB, free: 25.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 5.711e-06/0.4137, allocations: 0 / 0.5246 GB, free: 25.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.004813/0.4185, allocations: 1.809 MB / 0.5263 GB, free: 24.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.4186, allocations: 64.47 kB / 0.5264 GB, free: 24.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004268/0.4228, allocations: 2.193 MB / 0.5285 GB, free: 23.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.423, allocations: 37.64 kB / 0.5286 GB, free: 23.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.4242, allocations: 1.818 MB / 0.5304 GB, free: 22.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004459/0.4246, allocations: 375.5 kB / 0.5307 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001223/0.4259, allocations: 0.6381 MB / 0.5313 GB, free: 21.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.017e-05/0.426, allocations: 303.2 kB / 0.5316 GB, free: 21.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.4277, allocations: 1.005 MB / 0.5326 GB, free: 21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/0.4304, allocations: 2.905 MB / 0.5354 GB, free: 17.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003911/0.4344, allocations: 4.186 MB / 0.5395 GB, free: 13.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-05/0.4345, allocations: 22.25 kB / 0.5396 GB, free: 13.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007106/0.4416, allocations: 3.82 MB / 0.5433 GB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.719e-05/0.4417, allocations: 36.98 kB / 0.5433 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/0.4418, allocations: 68 kB / 0.5434 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-05/0.442, allocations: 92 kB / 0.5435 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/0.4442, allocations: 0.7096 MB / 0.5442 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001124/0.4444, allocations: 135.4 kB / 0.5443 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002896/0.4473, allocations: 472.6 kB / 0.5447 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005772/0.4479, allocations: 196.9 kB / 0.5449 GB, free: 10.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (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 (387): * Single equations (assignments): 383 * Array equations: 4 * 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.00248/0.4504, allocations: 1.387 MB / 0.5463 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004482/0.4509, allocations: 175.3 kB / 0.5465 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002418/0.4533, allocations: 1.199 MB / 0.5476 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/0.4534, allocations: 19.98 kB / 0.5476 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4535, allocations: 3.938 kB / 0.5476 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4535, allocations: 6.891 kB / 0.5477 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008016/0.4615, allocations: 3.934 MB / 0.5515 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.4616, allocations: 4.281 kB / 0.5515 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.4622, allocations: 139.1 kB / 0.5516 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/0.4622, allocations: 4 kB / 0.5516 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.243e-05/0.4623, allocations: 19.83 kB / 0.5517 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.287e-06/0.4623, allocations: 11.92 kB / 0.5517 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4623, allocations: 4 kB / 0.5517 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002345/0.4647, allocations: 1.962 MB / 0.5536 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005493/0.4653, allocations: 270.7 kB / 0.5538 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/0.4657, allocations: 12 kB / 0.5539 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008/0.4665, allocations: 31.97 kB / 0.5539 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.4666, allocations: 52.44 kB / 0.5539 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.4667, allocations: 39.27 kB / 0.554 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.4691, allocations: 1.42 MB / 0.5554 GB, free: 15.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.1e-07/0.4691, allocations: 0 / 0.5554 GB, free: 15.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003179/0.4723, allocations: 0.6978 MB / 0.556 GB, free: 14.54 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.phi) * 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 (69): * Single equations (assignments): 65 * Array equations: 4 * 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.003737/0.4761, allocations: 2.592 MB / 0.5586 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004045/0.4801, allocations: 2.254 MB / 0.5608 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.4802, allocations: 4 kB / 0.5608 GB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.4811, allocations: 0.5276 MB / 0.5613 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/0.4833, allocations: 318.5 kB / 0.5616 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03888/0.5222, allocations: 22.01 MB / 0.5831 GB, free: 352 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003553/0.5258, allocations: 2.282 MB / 0.5853 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002744/0.5286, allocations: 0.9767 MB / 0.5863 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/0.5306, allocations: 1.03 MB / 0.5873 GB, free: 12.02 MB / 430.1 MB Notification: Performance of SimCode: time 1.492e-06/0.5307, allocations: 4 kB / 0.5873 GB, free: 12.01 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0751/0.6058, allocations: 36.04 MB / 0.6225 GB, free: 8.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.39, allocations: 11.83 kB / 0.6225 GB, free: 8.148 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CounterSpin_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CounterSpin.fmu > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)