Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 104.6 kB / 16.4 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.001351, allocations: 191.7 kB / 19.35 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 245.1 MB, free: 14.99 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.04797/0.04797, allocations: 9.121 MB / 306.3 MB, free: 3.691 MB / 238.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.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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002559/0.002559, allocations: 67.89 kB / 422.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1089, allocations: 51.44 MB / 474.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01013/0.1191, allocations: 8.33 MB / 482.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00499/0.1241, allocations: 2.581 MB / 485.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006502/0.1248, allocations: 35.94 kB / 485.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007782/0.1255, allocations: 353.6 kB / 485.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002888/0.1285, allocations: 1.397 MB / 487 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.1289, allocations: 135.8 kB / 487.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003007/0.1319, allocations: 2.498 MB / 489.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.1331, allocations: 0.897 MB / 490.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.1343, allocations: 0.8832 MB / 491.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.136, allocations: 1.296 MB / 492.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003823/0.1364, allocations: 232 kB / 492.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.1379, allocations: 0.8348 MB / 493.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.1393, allocations: 1.2 MB / 494.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.1411, allocations: 1.553 MB / 496.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006581/0.1477, allocations: 4.98 MB / 0.4897 GB, free: 5.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1477, allocations: 0 / 0.4897 GB, free: 5.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1478, allocations: 0 / 0.4897 GB, free: 5.719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001212/0.1479, allocations: 0 / 0.4897 GB, free: 5.719 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.009351/0.1572, allocations: 3.902 MB / 0.4935 GB, free: 1.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1573, allocations: 12.03 kB / 0.4935 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007497/0.1581, allocations: 0.5307 MB / 0.4941 GB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007209/0.1653, allocations: 1.789 MB / 0.4958 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/0.1688, allocations: 1.361 MB / 0.4971 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.169, allocations: 148 kB / 0.4973 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006162/0.1696, allocations: 191.8 kB / 0.4975 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01446/0.1841, allocations: 7.913 MB / 0.5052 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.774e-05/0.1842, allocations: 23.81 kB / 0.5052 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003076/0.1846, allocations: 87.88 kB / 0.5053 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003355/0.1879, allocations: 1.848 MB / 0.5071 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2109/0.3988, allocations: 7.117 MB / 0.514 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02833/0.4272, allocations: 23.88 MB / 0.5374 GB, free: 23.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004513/0.4318, allocations: 2.375 MB / 0.5397 GB, free: 22.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009811/0.4328, allocations: 0.8178 MB / 0.5405 GB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/0.4382, allocations: 4.59 MB / 0.545 GB, free: 18.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.4382, allocations: 58.61 kB / 0.545 GB, free: 18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 2.886e-06/0.4382, allocations: 3.938 kB / 0.545 GB, free: 17.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01241/0.4506, allocations: 7.112 MB / 0.552 GB, free: 13.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.4507, allocations: 64.72 kB / 0.552 GB, free: 13.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002931/0.4536, allocations: 2.597 MB / 0.5546 GB, free: 10.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.42e-05/0.4537, allocations: 49.7 kB / 0.5546 GB, free: 10.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007697/0.4545, allocations: 2.141 MB / 0.5567 GB, free: 8.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000316/0.4548, allocations: 0.5961 MB / 0.5573 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007655/0.4556, allocations: 0.7797 MB / 0.5581 GB, free: 6.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.859e-05/0.4557, allocations: 301.1 kB / 0.5583 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.4573, allocations: 1.276 MB / 0.5596 GB, free: 5.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002419/0.4597, allocations: 3.374 MB / 0.5629 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006198/0.466, allocations: 5.005 MB / 0.5678 GB, free: 10.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.001e-05/0.4661, allocations: 26.16 kB / 0.5678 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008577/0.4746, allocations: 4.84 MB / 0.5725 GB, free: 6.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.888e-05/0.4747, allocations: 38.81 kB / 0.5726 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-05/0.4748, allocations: 72 kB / 0.5726 GB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/0.4757, allocations: 348.2 kB / 0.573 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002626/0.4783, allocations: 0.8461 MB / 0.5738 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/0.4831, allocations: 3.641 MB / 0.5773 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/0.4858, allocations: 191.9 kB / 0.5775 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004479/0.4863, allocations: 232 kB / 0.5777 GB, free: 0.5664 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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 (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002421/0.4887, allocations: 1.55 MB / 0.5793 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003802/0.4891, allocations: 230.5 kB / 0.5795 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003514/0.4926, allocations: 2.005 MB / 0.5814 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/0.4927, allocations: 23.98 kB / 0.5815 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4927, allocations: 4 kB / 0.5815 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.4928, allocations: 11.91 kB / 0.5815 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009677/0.5025, allocations: 5.649 MB / 0.587 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5025, allocations: 4 kB / 0.587 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.5033, allocations: 208 kB / 0.5872 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000678/0.504, allocations: 232.6 kB / 0.5874 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.319e-05/0.5041, allocations: 35.92 kB / 0.5874 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003628/0.5077, allocations: 2.957 MB / 0.5903 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.5078, allocations: 11.92 kB / 0.5903 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004816/0.5126, allocations: 3.098 MB / 0.5934 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007041/0.5133, allocations: 311.6 kB / 0.5937 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003272/0.5137, allocations: 29.56 kB / 0.5937 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008356/0.5145, allocations: 71.59 kB / 0.5938 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.5147, allocations: 84.83 kB / 0.5938 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-05/0.5148, allocations: 43.98 kB / 0.5939 GB, free: 15.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002791/0.5176, allocations: 1.679 MB / 0.5955 GB, free: 14.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5176, allocations: 0 / 0.5955 GB, free: 14.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003065/0.5207, allocations: 0.6796 MB / 0.5962 GB, free: 13.34 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005511/0.5262, allocations: 3.745 MB / 0.5998 GB, free: 9.527 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00575/0.532, allocations: 3.142 MB / 0.6029 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.532, allocations: 0 / 0.6029 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.5337, allocations: 1.033 MB / 0.6039 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.5359, allocations: 389.6 kB / 0.6043 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04295/0.5789, allocations: 27.42 MB / 0.6311 GB, free: 6.816 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00319/0.5821, allocations: 2.565 MB / 0.6336 GB, free: 4.219 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002938/0.5851, allocations: 1.172 MB / 0.6347 GB, free: 3.039 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/0.5871, allocations: 1.288 MB / 0.636 GB, free: 1.75 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5872, allocations: 0 / 0.636 GB, free: 1.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09538/0.6825, allocations: 46.77 MB / 0.6817 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.36/16.04, allocations: 17.75 kB / 0.6817 GB, free: 3.168 MB / 0.4981 GB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrab_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.69021224300377] Failed to read output from testmodel.py, exit status != 0: 16.160339636960998 16.185500696 16.033430209 Calling exit ...