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.01502/0.01502, allocations: 100 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.003392/0.003393, allocations: 187.4 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.01/2.01, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.09096/0.09096, allocations: 9.13 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 67.89 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1451, allocations: 51.44 MB / 465.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.01731/0.1625, allocations: 6.848 MB / 472.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009048/0.1716, allocations: 2.348 MB / 474.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.1735, allocations: 27.94 kB / 474.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.1752, allocations: 290.2 kB / 475.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005237/0.1804, allocations: 1.163 MB / 476.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006229/0.1811, allocations: 83.78 kB / 476.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005445/0.1866, allocations: 2.038 MB / 478.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008662/0.1875, allocations: 183 kB / 478.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.19, allocations: 0.7081 MB / 479.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003598/0.1936, allocations: 1.059 MB / 480.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.195, allocations: 188 kB / 480.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003605/0.1986, allocations: 0.7489 MB / 481.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002513/0.2012, allocations: 1.013 MB / 482.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004727/0.206, allocations: 1.289 MB / 483.5 MB, free: 120 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.2171, allocations: 4.358 MB / 487.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.233e-05/0.2172, allocations: 0 / 487.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.2172, allocations: 0 / 487.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001894/0.2174, allocations: 0 / 487.9 MB, free: 11.74 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.0194/0.2368, allocations: 3.67 MB / 491.6 MB, free: 8.008 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.032e-05/0.2369, allocations: 8.031 kB / 491.6 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002163/0.2391, allocations: 471.2 kB / 492 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/0.2534, allocations: 1.711 MB / 493.8 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005235/0.2587, allocations: 1.173 MB / 494.9 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002677/0.2591, allocations: 111.1 kB / 495 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/0.2605, allocations: 148.2 kB / 495.2 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02412/0.2847, allocations: 7.054 MB / 0.4905 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001716/0.285, allocations: 19.88 kB / 0.4905 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/0.2861, allocations: 71.88 kB / 0.4905 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006064/0.2922, allocations: 1.722 MB / 0.4922 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02367/0.3159, allocations: 6.47 MB / 0.4985 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3908/0.7068, allocations: 20.92 MB / 0.519 GB, free: 28.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005479/0.7124, allocations: 1.946 MB / 0.5209 GB, free: 27.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.7137, allocations: 0.5946 MB / 0.5215 GB, free: 27.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006512/0.7202, allocations: 3.348 MB / 0.5247 GB, free: 25.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.7203, allocations: 44.25 kB / 0.5248 GB, free: 25.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 4.849e-06/0.7203, allocations: 0 / 0.5248 GB, free: 25.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.004836/0.7252, allocations: 1.819 MB / 0.5266 GB, free: 24.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.7253, allocations: 65 kB / 0.5266 GB, free: 24.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004566/0.7298, allocations: 2.195 MB / 0.5288 GB, free: 23.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/0.73, allocations: 41.48 kB / 0.5288 GB, free: 23.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001229/0.7313, allocations: 1.886 MB / 0.5306 GB, free: 22.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004329/0.7317, allocations: 393.2 kB / 0.531 GB, free: 22.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/0.7329, allocations: 0.6459 MB / 0.5316 GB, free: 21.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.538e-05/0.7329, allocations: 308.9 kB / 0.5319 GB, free: 21.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.7346, allocations: 1.003 MB / 0.5329 GB, free: 21.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.737, allocations: 2.911 MB / 0.5358 GB, free: 17.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003922/0.741, allocations: 4.184 MB / 0.5398 GB, free: 14.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-05/0.7411, allocations: 18.47 kB / 0.5399 GB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007076/0.7482, allocations: 3.836 MB / 0.5436 GB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.029e-05/0.7483, allocations: 36 kB / 0.5436 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.43e-05/0.7484, allocations: 68 kB / 0.5437 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.001e-05/0.7485, allocations: 88 kB / 0.5438 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/0.751, allocations: 0.7141 MB / 0.5445 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001123/0.7511, allocations: 140.3 kB / 0.5446 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/0.754, allocations: 475.7 kB / 0.5451 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/0.7546, allocations: 199.8 kB / 0.5453 GB, free: 9.984 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.002283/0.7569, allocations: 1.387 MB / 0.5466 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.7572, allocations: 178.8 kB / 0.5468 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/0.7595, allocations: 1.204 MB / 0.548 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/0.7596, allocations: 19.98 kB / 0.548 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.7596, allocations: 3.938 kB / 0.548 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.7596, allocations: 9.281 kB / 0.548 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.7708, allocations: 3.936 MB / 0.5518 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.7709, allocations: 0 / 0.5518 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.7716, allocations: 131.8 kB / 0.552 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.7716, allocations: 8.281 kB / 0.552 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.984e-05/0.7717, allocations: 23.98 kB / 0.552 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.7717, allocations: 7.938 kB / 0.552 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.7717, allocations: 4 kB / 0.552 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.7742, allocations: 1.97 MB / 0.5539 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007489/0.775, allocations: 271.7 kB / 0.5542 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004939/0.7755, allocations: 19.98 kB / 0.5542 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.7766, allocations: 39.91 kB / 0.5543 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.7768, allocations: 44.5 kB / 0.5543 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.7769, allocations: 36 kB / 0.5543 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003341/0.7803, allocations: 1.42 MB / 0.5557 GB, free: 15.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7803, allocations: 0 / 0.5557 GB, free: 15.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003861/0.7842, allocations: 0.7126 MB / 0.5564 GB, free: 14.44 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.004348/0.7886, allocations: 2.603 MB / 0.559 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004603/0.7933, allocations: 2.248 MB / 0.5611 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.7933, allocations: 0 / 0.5611 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.7944, allocations: 0.5305 MB / 0.5617 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.7971, allocations: 318.1 kB / 0.562 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04704/0.8441, allocations: 22.11 MB / 0.5836 GB, free: 124 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003848/0.848, allocations: 2.286 MB / 0.5858 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002882/0.851, allocations: 0.9694 MB / 0.5867 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/0.8531, allocations: 1.034 MB / 0.5877 GB, free: 11.79 MB / 430.1 MB Notification: Performance of SimCode: time 9.71e-07/0.8531, allocations: 0 / 0.5877 GB, free: 11.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09975/0.9529, allocations: 35.59 MB / 0.6225 GB, free: 8.387 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.53/26.49, allocations: 10.19 kB / 0.6225 GB, free: 8.379 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CounterSpin_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_CounterSpin.fmu > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)