Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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.001362/0.001362, 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.001614/0.001614, allocations: 210.5 kB / 22.24 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.789 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.06932/0.06932, allocations: 9.242 MB / 321.7 MB, free: 9.945 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.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",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.002085/0.002085, allocations: 69.61 kB / 447.7 MB, free: 14.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1139, allocations: 55.47 MB / 0.4913 GB, free: 7.121 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01114/0.125, allocations: 8.838 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006974/0.132, allocations: 2.799 MB / 0.5027 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.1331, allocations: 43.88 kB / 0.5028 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.1342, allocations: 448.9 kB / 0.5032 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00409/0.1383, allocations: 1.654 MB / 0.5048 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.1388, allocations: 175.8 kB / 0.505 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003813/0.1427, allocations: 2.927 MB / 0.5078 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.1441, allocations: 0.879 MB / 0.5087 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.146, allocations: 1.109 MB / 0.5098 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002383/0.1484, allocations: 1.646 MB / 0.5114 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006254/0.149, allocations: 268 kB / 0.5116 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.1507, allocations: 0.7919 MB / 0.5124 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2655/0.4162, allocations: 1.506 MB / 0.5139 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002454/0.4186, allocations: 1.305 MB / 0.5151 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00755/0.4262, allocations: 5.774 MB / 0.5208 GB, free: 8.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.4262, allocations: 0 / 0.5208 GB, free: 8.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4262, allocations: 0 / 0.5208 GB, free: 8.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001708/0.4264, allocations: 0 / 0.5208 GB, free: 8.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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02894/0.4553, allocations: 7.063 MB / 0.5277 GB, free: 7.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.4554, allocations: 9.156 kB / 0.5277 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001664/0.457, allocations: 0.6447 MB / 0.5283 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007281/0.4643, allocations: 1.874 MB / 0.5301 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005294/0.4696, allocations: 1.682 MB / 0.5318 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002424/0.4698, allocations: 186.2 kB / 0.532 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001234/0.4711, allocations: 246 kB / 0.5322 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02153/0.4926, allocations: 10.41 MB / 0.5424 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.4927, allocations: 33.77 kB / 0.5424 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004094/0.4931, allocations: 115.7 kB / 0.5425 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003287/0.4964, allocations: 2.148 MB / 0.5446 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02456/0.521, allocations: 10.33 MB / 0.5547 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05655/0.5775, allocations: 31.82 MB / 0.5858 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01785/0.5954, allocations: 3.791 MB / 0.5895 GB, free: 7.672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003269/0.5986, allocations: 1.582 MB / 0.591 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01251/0.6111, allocations: 5.233 MB / 0.5961 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.394e-05/0.6112, allocations: 58.53 kB / 0.5962 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of pre-optimization done (n=232): time 5.17e-06/0.6112, allocations: 4 kB / 0.5962 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of matching and sorting (n=272): time 0.03305/0.6443, allocations: 12.97 MB / 0.6088 GB, free: 3.844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004848/0.6491, allocations: 3.394 MB / 0.6122 GB, free: 336 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005863/0.655, allocations: 3.27 MB / 0.6154 GB, free: 13.03 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004982/0.6555, allocations: 61.7 kB / 0.6154 GB, free: 12.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/0.6577, allocations: 2.508 MB / 0.6179 GB, free: 10.46 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/0.6592, allocations: 1.033 MB / 0.6189 GB, free: 9.445 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001765/0.661, allocations: 1.079 MB / 0.6199 GB, free: 8.363 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.6611, allocations: 305.1 kB / 0.6202 GB, free: 8.062 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/0.6646, allocations: 1.885 MB / 0.6221 GB, free: 6.172 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006162/0.6707, allocations: 4.642 MB / 0.6266 GB, free: 244 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/0.6811, allocations: 7.106 MB / 0.6335 GB, free: 8.191 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.875e-05/0.6812, allocations: 24 kB / 0.6336 GB, free: 8.168 MB / 478.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.0146/0.6958, allocations: 6.982 MB / 0.6404 GB, free: 1.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.906e-05/0.6959, allocations: 48 kB / 0.6404 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.696, allocations: 92.16 kB / 0.6405 GB, free: 1.113 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.6974, allocations: 0.5487 MB / 0.641 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/0.7018, allocations: 1.223 MB / 0.6422 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.7124, allocations: 7.107 MB / 0.6492 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00449/0.7169, allocations: 275.8 kB / 0.6494 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009162/0.7178, allocations: 308 kB / 0.6497 GB, free: 7.438 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (656): * Single equations (assignments): 650 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004237/0.7221, allocations: 1.856 MB / 0.6515 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007166/0.7228, allocations: 313.9 kB / 0.6518 GB, free: 5.262 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007235/0.73, allocations: 3.769 MB / 0.6555 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001159/0.7301, allocations: 39.98 kB / 0.6556 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.7302, allocations: 11.98 kB / 0.6556 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/0.7302, allocations: 15.95 kB / 0.6556 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02115/0.7513, allocations: 10.05 MB / 0.6654 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.7513, allocations: 12.62 kB / 0.6654 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.7529, allocations: 389.4 kB / 0.6658 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.7543, allocations: 0.5524 MB / 0.6663 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001716/0.7545, allocations: 54.88 kB / 0.6664 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/0.7658, allocations: 7.818 MB / 0.674 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004355/0.7702, allocations: 3.152 MB / 0.6771 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/0.7819, allocations: 5.758 MB / 0.6827 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/0.7842, allocations: 0.5607 MB / 0.6833 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005675/0.7848, allocations: 54.91 kB / 0.6833 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.7861, allocations: 123.8 kB / 0.6834 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/0.7866, allocations: 181.5 kB / 0.6836 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/0.7867, allocations: 79.92 kB / 0.6837 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003758/0.7905, allocations: 1.987 MB / 0.6856 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7905, allocations: 0 / 0.6856 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005443/0.7959, allocations: 0.963 MB / 0.6866 GB, free: 0.9961 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,revolute.phi,revolute.w,engineTorque.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 (203): * Single equations (assignments): 197 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (3,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.0111/0.807, allocations: 6.441 MB / 0.6929 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009677/0.8167, allocations: 4.823 MB / 0.6976 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.8167, allocations: 0 / 0.6976 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003884/0.8206, allocations: 1.994 MB / 0.6995 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.8235, allocations: 477.1 kB / 0.7 GB, free: 3.098 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3427/1.166, allocations: 38.4 MB / 0.7375 GB, free: 175.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003892/1.17, allocations: 2.452 MB / 0.7399 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004112/1.174, allocations: 1.596 MB / 0.7414 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002416/1.177, allocations: 1.644 MB / 0.743 GB, free: 173.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.824e-06/1.177, allocations: 0 / 0.743 GB, free: 173.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1158/1.292, allocations: 66.71 MB / 0.8082 GB, free: 114.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/17.01, allocations: 10.89 kB / 0.8082 GB, free: 114.5 MB / 0.545 GB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.94881477439776] Failed to read output from testmodel.py, exit status != 0: 17.174641904886812 17.194280728 16.764281547 Calling exit ...