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.001773/0.001773, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002236/0.002236, allocations: 218.5 kB / 22.26 MB, free: 5.125 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.619/1.619, allocations: 230.6 MB / 256 MB, free: 7.98 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.05228/0.05228, allocations: 9.235 MB / 321.7 MB, free: 10.14 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.002244/0.002244, allocations: 70.03 kB / 447.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1242, allocations: 55.47 MB / 0.4914 GB, free: 7.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008892/0.1331, allocations: 6.909 MB / 0.4982 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004939/0.1381, allocations: 2.437 MB / 0.5005 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000792/0.1389, allocations: 27.94 kB / 0.5006 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009371/0.1398, allocations: 306.1 kB / 0.5009 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002862/0.1426, allocations: 1.164 MB / 0.502 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.1431, allocations: 87.78 kB / 0.5021 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.1462, allocations: 2.009 MB / 0.504 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002846/0.1465, allocations: 75.36 kB / 0.5041 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.1478, allocations: 0.7237 MB / 0.5048 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001622/0.1494, allocations: 1.168 MB / 0.506 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003188/0.1498, allocations: 188 kB / 0.5061 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001461/0.1512, allocations: 0.784 MB / 0.5069 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.1522, allocations: 1.028 MB / 0.5079 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.1536, allocations: 1.27 MB / 0.5091 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005255/0.1589, allocations: 4.346 MB / 0.5134 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.1589, allocations: 7.875 kB / 0.5134 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1589, allocations: 0 / 0.5134 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.798e-05/0.1589, allocations: 0 / 0.5134 GB, free: 0.9297 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.2287/0.3876, allocations: 3.584 MB / 0.5169 GB, free: 24.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3877, allocations: 10.22 kB / 0.5169 GB, free: 24.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005466/0.3882, allocations: 466.8 kB / 0.5174 GB, free: 24.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/0.3948, allocations: 1.716 MB / 0.519 GB, free: 24.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002866/0.3976, allocations: 1.106 MB / 0.5201 GB, free: 24.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.377e-05/0.3977, allocations: 118.8 kB / 0.5202 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003727/0.3981, allocations: 144.5 kB / 0.5204 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.4091, allocations: 7.05 MB / 0.5272 GB, free: 21.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.988e-05/0.4092, allocations: 25.88 kB / 0.5273 GB, free: 21.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.4094, allocations: 70.62 kB / 0.5273 GB, free: 21.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/0.4126, allocations: 1.724 MB / 0.529 GB, free: 21.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01315/0.4257, allocations: 6.463 MB / 0.5353 GB, free: 19.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/0.4505, allocations: 20.87 MB / 0.5557 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/0.4542, allocations: 1.429 MB / 0.5571 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.4553, allocations: 0.5542 MB / 0.5577 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004816/0.4601, allocations: 2.218 MB / 0.5598 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.4601, allocations: 39.22 kB / 0.5599 GB, free: 12.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 3.797e-06/0.4601, allocations: 0.6562 kB / 0.5599 GB, free: 12.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004356/0.4645, allocations: 1.824 MB / 0.5616 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.4645, allocations: 64.06 kB / 0.5617 GB, free: 10.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.4679, allocations: 2.191 MB / 0.5638 GB, free: 8.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.468, allocations: 37.7 kB / 0.5639 GB, free: 8.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001646/0.4697, allocations: 1.903 MB / 0.5657 GB, free: 6.543 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.4701, allocations: 385.1 kB / 0.5661 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/0.4711, allocations: 0.6434 MB / 0.5667 GB, free: 5.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.4713, allocations: 305.1 kB / 0.567 GB, free: 5.211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.473, allocations: 1.002 MB / 0.568 GB, free: 4.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00368/0.4767, allocations: 2.906 MB / 0.5708 GB, free: 364 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005861/0.4826, allocations: 4.194 MB / 0.5749 GB, free: 11.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.894e-05/0.4826, allocations: 20 kB / 0.5749 GB, free: 11.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007651/0.4903, allocations: 3.834 MB / 0.5787 GB, free: 7.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.705e-05/0.4903, allocations: 39.28 kB / 0.5787 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.468e-05/0.4904, allocations: 67.94 kB / 0.5788 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001026/0.4905, allocations: 95.94 kB / 0.5789 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/0.4929, allocations: 0.7135 MB / 0.5796 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000114/0.493, allocations: 131.5 kB / 0.5797 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/0.4954, allocations: 471.3 kB / 0.5802 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004056/0.4958, allocations: 208.1 kB / 0.5804 GB, free: 5.672 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.002491/0.4983, allocations: 1.39 MB / 0.5817 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002783/0.4986, allocations: 178.8 kB / 0.5819 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/0.5009, allocations: 1.191 MB / 0.583 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/0.501, allocations: 27.97 kB / 0.5831 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.501, allocations: 4 kB / 0.5831 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.501, allocations: 3.938 kB / 0.5831 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007572/0.5086, allocations: 3.911 MB / 0.5869 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.5086, allocations: 4 kB / 0.5869 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007258/0.5093, allocations: 131.8 kB / 0.587 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.5093, allocations: 4 kB / 0.587 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.609e-05/0.5094, allocations: 19.98 kB / 0.5871 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.5094, allocations: 8 kB / 0.5871 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.5094, allocations: 7.875 kB / 0.5871 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.5126, allocations: 1.969 MB / 0.589 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006619/0.5132, allocations: 202.5 kB / 0.5892 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.5134, allocations: 19.98 kB / 0.5892 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005698/0.514, allocations: 31.97 kB / 0.5892 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.5142, allocations: 48.92 kB / 0.5893 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.5143, allocations: 31.98 kB / 0.5893 GB, free: 12.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002243/0.5165, allocations: 1.416 MB / 0.5907 GB, free: 10.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5165, allocations: 0 / 0.5907 GB, free: 10.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002726/0.5192, allocations: 0.701 MB / 0.5914 GB, free: 10.24 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.003687/0.5229, allocations: 2.605 MB / 0.5939 GB, free: 7.586 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00433/0.5273, allocations: 2.163 MB / 0.596 GB, free: 5.434 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5273, allocations: 0.5 kB / 0.596 GB, free: 5.434 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008603/0.5281, allocations: 0.4951 MB / 0.5965 GB, free: 4.941 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.5297, allocations: 308.5 kB / 0.5968 GB, free: 4.652 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04207/0.5718, allocations: 22.12 MB / 0.6184 GB, free: 12.01 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002966/0.5748, allocations: 2.29 MB / 0.6207 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002529/0.5773, allocations: 0.9689 MB / 0.6216 GB, free: 8.723 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/0.5789, allocations: 1.038 MB / 0.6226 GB, free: 7.684 MB / 462.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5789, allocations: 0 / 0.6226 GB, free: 7.684 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09066/0.6696, allocations: 38.49 MB / 0.6602 GB, free: 1.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.99/18.66, allocations: 3.938 kB / 0.6602 GB, free: 1.426 MB / 494.1 MB " [Timeout remaining time 641] (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: 21.71784392000336] Failed to read output from testmodel.py, exit status != 0: 18.795409713999106 18.814136174 18.6509922 Calling exit ...