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.005065/0.005066, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001379/0.001379, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1566/0.1566, allocations: 9.113 MB / 299.7 MB, free: 1.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001896, allocations: 68.11 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2312, allocations: 51.43 MB / 465.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.006712/0.2379, allocations: 6.858 MB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00469/0.2427, allocations: 2.353 MB / 474.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000954/0.2437, allocations: 27.53 kB / 474.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007319/0.2444, allocations: 293.5 kB / 475.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002608/0.2471, allocations: 1.126 MB / 476.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.2474, allocations: 86.81 kB / 476.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002243/0.2496, allocations: 2.036 MB / 478.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003207/0.2499, allocations: 183 kB / 478.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008989/0.2508, allocations: 0.6977 MB / 479.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001061/0.2519, allocations: 1.062 MB / 480.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003193/0.2523, allocations: 188 kB / 480.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.2535, allocations: 0.7451 MB / 481.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000747/0.2543, allocations: 1.021 MB / 482.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008513/0.2551, allocations: 1.28 MB / 483.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003712/0.2588, allocations: 4.362 MB / 487.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2589, allocations: 4.719 kB / 487.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2589, allocations: 0 / 487.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.376e-05/0.2589, allocations: 0 / 487.9 MB, free: 3.547 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.007088/0.266, allocations: 3.662 MB / 491.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2661, allocations: 10.06 kB / 491.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004889/0.2666, allocations: 470.9 kB / 492 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006243/0.2728, allocations: 1.717 MB / 493.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.275, allocations: 1.165 MB / 494.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.2751, allocations: 111.1 kB / 495 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.2754, allocations: 152.2 kB / 495.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.2869, allocations: 7.054 MB / 0.4904 GB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.93e-05/0.287, allocations: 15.88 kB / 0.4904 GB, free: 7.117 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003472/0.2873, allocations: 79.86 kB / 0.4905 GB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003183/0.2905, allocations: 1.726 MB / 0.4922 GB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/0.304, allocations: 6.462 MB / 0.4985 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03492/0.3389, allocations: 20.94 MB / 0.519 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004525/0.3435, allocations: 1.924 MB / 0.5208 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.3446, allocations: 0.5972 MB / 0.5214 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005138/0.3498, allocations: 3.344 MB / 0.5247 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.3498, allocations: 51.05 kB / 0.5247 GB, free: 3.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 3.246e-06/0.3498, allocations: 0 / 0.5247 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004508/0.3544, allocations: 1.82 MB / 0.5265 GB, free: 1.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.3544, allocations: 59.97 kB / 0.5266 GB, free: 1.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003854/0.3583, allocations: 2.2 MB / 0.5287 GB, free: 15 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.245e-05/0.3584, allocations: 37.7 kB / 0.5288 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/0.36, allocations: 1.887 MB / 0.5306 GB, free: 13.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.3605, allocations: 393 kB / 0.531 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.3615, allocations: 0.6473 MB / 0.5316 GB, free: 12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3617, allocations: 305.1 kB / 0.5319 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.3635, allocations: 1.006 MB / 0.5329 GB, free: 10.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003601/0.3671, allocations: 2.905 MB / 0.5357 GB, free: 6.844 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005557/0.3727, allocations: 4.187 MB / 0.5398 GB, free: 1.719 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-05/0.3728, allocations: 20 kB / 0.5398 GB, free: 1.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007234/0.38, allocations: 3.841 MB / 0.5436 GB, free: 13.86 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.762e-05/0.3801, allocations: 35.94 kB / 0.5436 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-05/0.3802, allocations: 68 kB / 0.5437 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001137/0.3803, allocations: 88 kB / 0.5438 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/0.3826, allocations: 0.7135 MB / 0.5445 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000123/0.3827, allocations: 132 kB / 0.5446 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/0.3853, allocations: 488.4 kB / 0.5451 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003545/0.3856, allocations: 192 kB / 0.5452 GB, free: 12.16 MB / 430.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.002477/0.3881, allocations: 1.391 MB / 0.5466 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/0.3885, allocations: 182.7 kB / 0.5468 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/0.3909, allocations: 1.197 MB / 0.5479 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001135/0.391, allocations: 23.97 kB / 0.548 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.391, allocations: 0 / 0.548 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.391, allocations: 7.984 kB / 0.548 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007987/0.399, allocations: 3.935 MB / 0.5518 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.3991, allocations: 4 kB / 0.5518 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006308/0.3997, allocations: 135.8 kB / 0.5519 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.3997, allocations: 4 kB / 0.552 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.3998, allocations: 20.28 kB / 0.552 GB, free: 5.152 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.1e-05/0.3998, allocations: 11.92 kB / 0.552 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3998, allocations: 4.062 kB / 0.552 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.403, allocations: 1.967 MB / 0.5539 GB, free: 3.129 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005459/0.4035, allocations: 275.7 kB / 0.5542 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.4039, allocations: 12 kB / 0.5542 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006916/0.4046, allocations: 43.89 kB / 0.5542 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4047, allocations: 48.45 kB / 0.5543 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-05/0.4048, allocations: 31.98 kB / 0.5543 GB, free: 2.707 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002561/0.4073, allocations: 1.412 MB / 0.5557 GB, free: 1.305 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4074, allocations: 0 / 0.5557 GB, free: 1.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002869/0.4102, allocations: 0.7166 MB / 0.5564 GB, free: 0.5859 MB / 430.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.003769/0.414, allocations: 2.604 MB / 0.5589 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004142/0.4182, allocations: 2.257 MB / 0.5611 GB, free: 11.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4182, allocations: 7.875 kB / 0.5611 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008746/0.4191, allocations: 0.5228 MB / 0.5616 GB, free: 11.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.421, allocations: 311.6 kB / 0.5619 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03821/0.4592, allocations: 22.11 MB / 0.5835 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1878/0.647, allocations: 2.283 MB / 0.5858 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00269/0.6497, allocations: 0.9716 MB / 0.5867 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.6512, allocations: 1.034 MB / 0.5877 GB, free: 115.4 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6512, allocations: 0 / 0.5877 GB, free: 115.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06501/0.7162, allocations: 35.59 MB / 0.6225 GB, free: 98.13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.85/14.57, allocations: 5.812 kB / 0.6225 GB, free: 98.13 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)