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.00164/0.00164, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 197 kB / 16.53 MB, free: 6.664 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.534/1.534, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2467/0.2467, allocations: 9.11 MB / 299.5 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 67.89 kB / 362 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1443, allocations: 51.44 MB / 413.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.01112/0.1555, allocations: 6.85 MB / 420.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005872/0.1615, allocations: 2.367 MB / 422.7 MB, free: 180 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.1631, allocations: 27.94 kB / 422.7 MB, free: 152 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2671/0.4302, allocations: 287.4 kB / 423 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.4341, allocations: 1.124 MB / 424.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.4346, allocations: 76.95 kB / 424.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.4375, allocations: 2.031 MB / 426.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.4379, allocations: 178.8 kB / 426.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.439, allocations: 0.7057 MB / 427.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.4403, allocations: 1.065 MB / 428.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003187/0.4406, allocations: 185.4 kB / 428.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.4421, allocations: 0.7481 MB / 429.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009913/0.4431, allocations: 1.014 MB / 430.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001752/0.4449, allocations: 1.289 MB / 431.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006066/0.451, allocations: 4.134 MB / 435.5 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.451, allocations: 3.062 kB / 435.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.4511, allocations: 0 / 435.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001445/0.4512, allocations: 3.906 kB / 435.6 MB, free: 34.07 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.009147/0.4604, allocations: 3.589 MB / 439.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.4605, allocations: 9.844 kB / 439.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007693/0.4612, allocations: 466.2 kB / 439.6 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006149/0.4674, allocations: 1.696 MB / 441.3 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.4695, allocations: 1.161 MB / 442.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.134e-05/0.4696, allocations: 113 kB / 442.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003396/0.4699, allocations: 151.2 kB / 442.7 MB, free: 31.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009431/0.4794, allocations: 7.05 MB / 449.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.732e-05/0.4795, allocations: 21.28 kB / 449.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002479/0.4797, allocations: 70.61 kB / 449.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002636/0.4824, allocations: 1.727 MB / 451.6 MB, free: 27.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/0.4975, allocations: 6.461 MB / 458.1 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03426/0.5318, allocations: 20.96 MB / 479 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/0.5362, allocations: 1.935 MB / 480.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009558/0.5372, allocations: 0.5998 MB / 481.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004675/0.5419, allocations: 3.342 MB / 484.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.542, allocations: 41.88 kB / 484.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.575e-06/0.542, allocations: 7.438 kB / 484.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003987/0.546, allocations: 1.813 MB / 486.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.546, allocations: 58.47 kB / 486.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003256/0.5493, allocations: 2.182 MB / 489 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.382e-05/0.5494, allocations: 37.7 kB / 489 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000904/0.5503, allocations: 1.821 MB / 490.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002732/0.5506, allocations: 380.3 kB / 491.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006818/0.5513, allocations: 0.6451 MB / 491.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.03e-05/0.5514, allocations: 302.8 kB / 492.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.5528, allocations: 0.9977 MB / 493.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003007/0.5558, allocations: 2.908 MB / 496.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005441/0.5613, allocations: 4.186 MB / 0.4885 GB, free: 9.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.66e-05/0.5614, allocations: 24 kB / 0.4885 GB, free: 9.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.00814/0.5695, allocations: 3.822 MB / 0.4923 GB, free: 5.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.5696, allocations: 39.98 kB / 0.4923 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.553e-05/0.5697, allocations: 74.38 kB / 0.4924 GB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001032/0.5698, allocations: 92 kB / 0.4925 GB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002276/0.5721, allocations: 0.7057 MB / 0.4932 GB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000109/0.5722, allocations: 135.5 kB / 0.4933 GB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0028/0.575, allocations: 467 kB / 0.4937 GB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003326/0.5754, allocations: 194.2 kB / 0.4939 GB, free: 3.531 MB / 366.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.002644/0.578, allocations: 1.395 MB / 0.4953 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.5784, allocations: 169.8 kB / 0.4955 GB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.5806, allocations: 1.195 MB / 0.4966 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/0.5807, allocations: 21.06 kB / 0.4966 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5807, allocations: 8 kB / 0.4966 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.5808, allocations: 3.984 kB / 0.4967 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007021/0.5878, allocations: 3.94 MB / 0.5005 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5878, allocations: 0 / 0.5005 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006283/0.5885, allocations: 131.8 kB / 0.5006 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/0.5885, allocations: 8 kB / 0.5006 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.562e-05/0.5886, allocations: 22.67 kB / 0.5007 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.5886, allocations: 16.16 kB / 0.5007 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5886, allocations: 4 kB / 0.5007 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.5914, allocations: 1.949 MB / 0.5026 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006012/0.592, allocations: 266.7 kB / 0.5028 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.5923, allocations: 16 kB / 0.5028 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/0.5929, allocations: 38.8 kB / 0.5029 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.593, allocations: 48.5 kB / 0.5029 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.844e-05/0.5931, allocations: 27.98 kB / 0.503 GB, free: 10.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00247/0.5955, allocations: 1.424 MB / 0.5043 GB, free: 8.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5955, allocations: 2.531 kB / 0.5043 GB, free: 8.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003696/0.5993, allocations: 0.7003 MB / 0.505 GB, free: 8.027 MB / 382.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.004113/0.6034, allocations: 2.585 MB / 0.5076 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005156/0.6086, allocations: 2.777 MB / 0.5103 GB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.6086, allocations: 8.062 kB / 0.5103 GB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.6094, allocations: 0.515 MB / 0.5108 GB, free: 2.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.6117, allocations: 321 kB / 0.5111 GB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03693/0.6486, allocations: 23.23 MB / 0.5338 GB, free: 7.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002787/0.6515, allocations: 2.278 MB / 0.536 GB, free: 5.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002794/0.6543, allocations: 0.9767 MB / 0.5369 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/0.6559, allocations: 1.042 MB / 0.538 GB, free: 3.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.402e-06/0.6559, allocations: 0 / 0.538 GB, free: 3.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07958/0.7355, allocations: 36.35 MB / 0.5735 GB, free: 15.13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.758/9.493, allocations: 6.219 kB / 0.5735 GB, free: 15.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)