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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 102.7 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002282/0.002282, allocations: 206.4 kB / 19.42 MB, free: 3.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04872/0.04872, allocations: 9.221 MB / 318.1 MB, free: 11.24 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 71.88 kB / 442.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1369, allocations: 55.44 MB / 498 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.01217/0.1491, allocations: 6.877 MB / 0.493 GB, free: 4.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005172/0.1542, allocations: 2.429 MB / 0.4954 GB, free: 1.695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.1553, allocations: 27.94 kB / 0.4954 GB, free: 1.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009239/0.1562, allocations: 310.1 kB / 0.4957 GB, free: 1.363 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003101/0.1593, allocations: 1.148 MB / 0.4968 GB, free: 216 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1597, allocations: 87.78 kB / 0.4969 GB, free: 128 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003474/0.1632, allocations: 2.015 MB / 0.4989 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004424/0.1636, allocations: 103 kB / 0.499 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001578/0.1652, allocations: 0.7121 MB / 0.4997 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.1671, allocations: 1.16 MB / 0.5008 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005599/0.1676, allocations: 192 kB / 0.501 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.1695, allocations: 0.7879 MB / 0.5018 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001545/0.171, allocations: 1.024 MB / 0.5028 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001887/0.1729, allocations: 1.274 MB / 0.504 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006329/0.1792, allocations: 4.338 MB / 0.5082 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1792, allocations: 0 / 0.5082 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1792, allocations: 0 / 0.5082 GB, free: 4.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001189/0.1793, allocations: 4 kB / 0.5082 GB, free: 4.469 MB / 382.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.01013/0.1895, allocations: 3.674 MB / 0.5118 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/0.1895, allocations: 8.031 kB / 0.5118 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009931/0.1905, allocations: 467.2 kB / 0.5123 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2201/0.4106, allocations: 1.707 MB / 0.514 GB, free: 25.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002792/0.4134, allocations: 1.165 MB / 0.5151 GB, free: 25.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.4135, allocations: 114.9 kB / 0.5152 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007645/0.4143, allocations: 143.6 kB / 0.5153 GB, free: 25.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.4262, allocations: 7.046 MB / 0.5222 GB, free: 23.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.937e-05/0.4263, allocations: 27.78 kB / 0.5222 GB, free: 23.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.4266, allocations: 66.72 kB / 0.5223 GB, free: 23.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003218/0.4298, allocations: 1.726 MB / 0.524 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.4446, allocations: 6.462 MB / 0.5303 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/0.4745, allocations: 20.94 MB / 0.5508 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004077/0.4785, allocations: 1.875 MB / 0.5526 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008474/0.4794, allocations: 0.5597 MB / 0.5531 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00534/0.4847, allocations: 3.355 MB / 0.5564 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.4848, allocations: 41.12 kB / 0.5565 GB, free: 14.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 3.827e-06/0.4848, allocations: 0 / 0.5565 GB, free: 14.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.005151/0.4899, allocations: 1.82 MB / 0.5582 GB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.49, allocations: 59.97 kB / 0.5583 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004172/0.4942, allocations: 2.2 MB / 0.5604 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000183/0.4943, allocations: 37.7 kB / 0.5605 GB, free: 9.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.4961, allocations: 1.895 MB / 0.5623 GB, free: 8.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006007/0.4967, allocations: 385.1 kB / 0.5627 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.4979, allocations: 0.6473 MB / 0.5633 GB, free: 7.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.498, allocations: 307.4 kB / 0.5636 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.5002, allocations: 1.006 MB / 0.5646 GB, free: 5.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004607/0.5048, allocations: 2.903 MB / 0.5674 GB, free: 1.867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006601/0.5114, allocations: 4.186 MB / 0.5715 GB, free: 12.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.639e-05/0.5115, allocations: 20 kB / 0.5715 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.009215/0.5207, allocations: 3.829 MB / 0.5753 GB, free: 8.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.5208, allocations: 32 kB / 0.5753 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.642e-05/0.5209, allocations: 68 kB / 0.5754 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.521, allocations: 91.94 kB / 0.5755 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00268/0.5237, allocations: 0.7189 MB / 0.5762 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001572/0.5238, allocations: 131.7 kB / 0.5763 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003114/0.5269, allocations: 484.5 kB / 0.5768 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006102/0.5276, allocations: 192 kB / 0.5769 GB, free: 7.195 MB / 414.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.00294/0.5305, allocations: 1.395 MB / 0.5783 GB, free: 5.789 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/0.5309, allocations: 182.7 kB / 0.5785 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.5334, allocations: 1.201 MB / 0.5796 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/0.5335, allocations: 23.97 kB / 0.5797 GB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5335, allocations: 0 / 0.5797 GB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5335, allocations: 5.156 kB / 0.5797 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/0.5413, allocations: 3.934 MB / 0.5835 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.5413, allocations: 4 kB / 0.5835 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006545/0.5419, allocations: 139.7 kB / 0.5837 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.542, allocations: 8.656 kB / 0.5837 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-05/0.542, allocations: 19.98 kB / 0.5837 GB, free: 188 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.328e-06/0.542, allocations: 4 kB / 0.5837 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.542, allocations: 7.938 kB / 0.5837 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003197/0.5452, allocations: 1.972 MB / 0.5856 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005404/0.5458, allocations: 271.8 kB / 0.5859 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.546, allocations: 15.98 kB / 0.5859 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.5466, allocations: 35.97 kB / 0.5859 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5467, allocations: 52.38 kB / 0.586 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.876e-05/0.5468, allocations: 28 kB / 0.586 GB, free: 13.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002399/0.5492, allocations: 1.416 MB / 0.5874 GB, free: 12.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5492, allocations: 0 / 0.5874 GB, free: 12.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002889/0.5521, allocations: 0.7049 MB / 0.5881 GB, free: 11.63 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.003971/0.5561, allocations: 2.6 MB / 0.5906 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004303/0.5604, allocations: 2.166 MB / 0.5927 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.5604, allocations: 0 / 0.5927 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009358/0.5613, allocations: 499.3 kB / 0.5932 GB, free: 6.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.5631, allocations: 318.5 kB / 0.5935 GB, free: 6.035 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04061/0.6037, allocations: 22.1 MB / 0.6151 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00337/0.6071, allocations: 2.288 MB / 0.6173 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00256/0.6097, allocations: 0.9767 MB / 0.6183 GB, free: 10.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/0.6114, allocations: 1.034 MB / 0.6193 GB, free: 9.09 MB / 462.1 MB Notification: Performance of SimCode: time 1.613e-06/0.6114, allocations: 0 / 0.6193 GB, free: 9.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09303/0.7045, allocations: 35.8 MB / 0.6542 GB, free: 5.465 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.57, allocations: 8 kB / 0.6543 GB, free: 5.457 MB / 494.1 MB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.326067736998084] Failed to read output from testmodel.py, exit status != 0: 14.661848500996712 14.682507127 14.499039358 Calling exit ...