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.001412/0.001412, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001469/0.001469, allocations: 213 kB / 22.25 MB, free: 5.262 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 7.793 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.04947/0.04947, allocations: 9.251 MB / 321.7 MB, free: 9.832 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.002067/0.002067, allocations: 63.91 kB / 447.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.1019, allocations: 55.48 MB / 0.4913 GB, free: 6.988 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008427/0.1103, allocations: 6.08 MB / 0.4973 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004508/0.1149, allocations: 2.281 MB / 0.4995 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006076/0.1155, allocations: 31.88 kB / 0.4995 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006621/0.1161, allocations: 306.1 kB / 0.4998 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002413/0.1185, allocations: 1.16 MB / 0.501 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.1188, allocations: 83.77 kB / 0.501 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002258/0.121, allocations: 2.016 MB / 0.503 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1213, allocations: 75.36 kB / 0.5031 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009315/0.1222, allocations: 0.7238 MB / 0.5038 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.1236, allocations: 1.137 MB / 0.5049 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002997/0.1239, allocations: 184 kB / 0.5051 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.125, allocations: 0.6631 MB / 0.5057 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009341/0.126, allocations: 1.024 MB / 0.5067 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008869/0.1269, allocations: 0.877 MB / 0.5076 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004576/0.1314, allocations: 4.338 MB / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1314, allocations: 0 / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1315, allocations: 0 / 0.5118 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.809e-05/0.1315, allocations: 3.938 kB / 0.5118 GB, free: 1.922 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.2027/0.3343, allocations: 3.591 MB / 0.5153 GB, free: 24.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3343, allocations: 9.25 kB / 0.5153 GB, free: 24.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004075/0.3347, allocations: 476.5 kB / 0.5158 GB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006065/0.3408, allocations: 1.71 MB / 0.5175 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.3431, allocations: 1.127 MB / 0.5186 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.231e-05/0.3432, allocations: 110.4 kB / 0.5187 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003315/0.3435, allocations: 146.2 kB / 0.5188 GB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009003/0.3525, allocations: 7.049 MB / 0.5257 GB, free: 21.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.536e-05/0.3526, allocations: 19.88 kB / 0.5257 GB, free: 21.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.3528, allocations: 79.25 kB / 0.5258 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002674/0.3555, allocations: 1.719 MB / 0.5275 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/0.3671, allocations: 6.456 MB / 0.5338 GB, free: 19.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02359/0.3907, allocations: 19.62 MB / 0.5529 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003369/0.3941, allocations: 1.418 MB / 0.5543 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007278/0.3948, allocations: 0.5543 MB / 0.5549 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003923/0.3987, allocations: 2.028 MB / 0.5568 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3988, allocations: 39.22 kB / 0.5569 GB, free: 14.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 2.795e-06/0.3988, allocations: 0 / 0.5569 GB, free: 14.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004078/0.4029, allocations: 1.826 MB / 0.5587 GB, free: 12.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.4029, allocations: 56.06 kB / 0.5587 GB, free: 12.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003228/0.4061, allocations: 2.315 MB / 0.561 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.588e-05/0.4062, allocations: 33.7 kB / 0.561 GB, free: 10.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001425/0.4076, allocations: 1.893 MB / 0.5629 GB, free: 8.258 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/0.408, allocations: 397 kB / 0.5632 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008682/0.4089, allocations: 0.6434 MB / 0.5639 GB, free: 7.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.409, allocations: 302.2 kB / 0.5642 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.4107, allocations: 1.007 MB / 0.5651 GB, free: 5.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/0.4141, allocations: 2.907 MB / 0.568 GB, free: 2.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005357/0.4195, allocations: 4.19 MB / 0.5721 GB, free: 12.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.835e-05/0.4195, allocations: 16 kB / 0.5721 GB, free: 12.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006786/0.4263, allocations: 3.839 MB / 0.5758 GB, free: 9.082 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.023e-05/0.4263, allocations: 32 kB / 0.5759 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-05/0.4264, allocations: 68 kB / 0.5759 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001057/0.4265, allocations: 91.94 kB / 0.576 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/0.4287, allocations: 0.7096 MB / 0.5767 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001173/0.4288, allocations: 131.5 kB / 0.5768 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/0.4311, allocations: 480.7 kB / 0.5773 GB, free: 7.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.4314, allocations: 202.7 kB / 0.5775 GB, free: 7.387 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.002095/0.4335, allocations: 1.394 MB / 0.5788 GB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.4337, allocations: 178.8 kB / 0.579 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.4359, allocations: 1.194 MB / 0.5802 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.436, allocations: 19.98 kB / 0.5802 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.436, allocations: 0 / 0.5802 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.436, allocations: 7.984 kB / 0.5802 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/0.4427, allocations: 3.744 MB / 0.5839 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4427, allocations: 4 kB / 0.5839 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006122/0.4433, allocations: 140 kB / 0.584 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.4433, allocations: 8 kB / 0.584 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/0.4433, allocations: 16 kB / 0.584 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.4433, allocations: 4 kB / 0.584 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.4434, allocations: 11.88 kB / 0.584 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.4462, allocations: 1.965 MB / 0.586 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.4466, allocations: 202.6 kB / 0.5862 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.4468, allocations: 12 kB / 0.5862 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.4474, allocations: 35.97 kB / 0.5862 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.196e-05/0.4475, allocations: 52.34 kB / 0.5862 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.574e-05/0.4475, allocations: 32.89 kB / 0.5863 GB, free: 14.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002064/0.4496, allocations: 1.412 MB / 0.5877 GB, free: 12.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4496, allocations: 0 / 0.5877 GB, free: 12.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002386/0.452, allocations: 0.701 MB / 0.5883 GB, free: 12.12 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.003393/0.4554, allocations: 2.609 MB / 0.5909 GB, free: 9.465 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.4591, allocations: 2.168 MB / 0.593 GB, free: 7.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.83e-06/0.4591, allocations: 4 kB / 0.593 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007632/0.4598, allocations: 495.7 kB / 0.5935 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.4613, allocations: 327 kB / 0.5938 GB, free: 6.523 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/0.495, allocations: 22.1 MB / 0.6154 GB, free: 13.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/0.4975, allocations: 1.724 MB / 0.6171 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002285/0.4998, allocations: 0.965 MB / 0.618 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001463/0.5013, allocations: 1.042 MB / 0.619 GB, free: 10.15 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5013, allocations: 0 / 0.619 GB, free: 10.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07809/0.5794, allocations: 36.06 MB / 0.6542 GB, free: 6.523 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.92, allocations: 8.062 kB / 0.6542 GB, free: 6.516 MB / 494.1 MB " [Timeout remaining time 646] (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: 16.599919909145683] Failed to read output from testmodel.py, exit status != 0: 14.046796162147075 14.064340612 13.929491327 Calling exit ...