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.00145/0.00145, 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.001633/0.001633, allocations: 213.5 kB / 22.25 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.412/1.412, allocations: 230.6 MB / 256 MB, free: 7.984 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.04909/0.04909, allocations: 9.231 MB / 321.7 MB, free: 10.05 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.003115/0.003115, allocations: 71.89 kB / 447.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1111, allocations: 55.47 MB / 0.4914 GB, free: 7.492 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01177/0.1229, allocations: 10.15 MB / 0.5013 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006023/0.1289, allocations: 2.955 MB / 0.5042 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000804/0.1297, allocations: 47.81 kB / 0.5043 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009912/0.1307, allocations: 452.9 kB / 0.5047 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.1341, allocations: 1.642 MB / 0.5063 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.1345, allocations: 183.7 kB / 0.5065 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.1379, allocations: 2.934 MB / 0.5093 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.139, allocations: 0.883 MB / 0.5102 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001513/0.1405, allocations: 1.117 MB / 0.5113 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002189/0.1427, allocations: 1.72 MB / 0.513 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005287/0.1432, allocations: 264 kB / 0.5132 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.1447, allocations: 0.9128 MB / 0.5141 GB, free: 140 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1948/0.3395, allocations: 1.489 MB / 0.5156 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.3411, allocations: 1.845 MB / 0.5174 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00586/0.3469, allocations: 5.771 MB / 0.523 GB, free: 8.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.347, allocations: 0 / 0.523 GB, free: 8.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.347, allocations: 0 / 0.523 GB, free: 8.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.3471, allocations: 1.969 kB / 0.523 GB, free: 8.438 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.02732/0.3744, allocations: 7.06 MB / 0.5299 GB, free: 6.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3744, allocations: 10.38 kB / 0.5299 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008411/0.3753, allocations: 0.6383 MB / 0.5305 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007126/0.3824, allocations: 1.882 MB / 0.5324 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004324/0.3867, allocations: 1.66 MB / 0.534 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.3869, allocations: 188.1 kB / 0.5342 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008142/0.3877, allocations: 244.9 kB / 0.5344 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.4079, allocations: 10.41 MB / 0.5446 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.191e-05/0.408, allocations: 34.61 kB / 0.5446 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003828/0.4084, allocations: 112.9 kB / 0.5447 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002985/0.4113, allocations: 2.154 MB / 0.5468 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02158/0.4329, allocations: 10.36 MB / 0.5569 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05158/0.4845, allocations: 33.45 MB / 0.5896 GB, free: 7.391 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/0.5018, allocations: 3.804 MB / 0.5933 GB, free: 3.605 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00254/0.5044, allocations: 1.577 MB / 0.5949 GB, free: 2.023 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/0.5153, allocations: 5.589 MB / 0.6003 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.5153, allocations: 59.66 kB / 0.6004 GB, free: 12.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=232): time 3.727e-06/0.5153, allocations: 0 / 0.6004 GB, free: 12.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03021/0.5456, allocations: 12.98 MB / 0.613 GB, free: 15.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005081/0.5506, allocations: 3.413 MB / 0.6164 GB, free: 11.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004884/0.5555, allocations: 3.104 MB / 0.6194 GB, free: 8.766 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001636/0.5557, allocations: 61.7 kB / 0.6195 GB, free: 8.699 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.5576, allocations: 2.506 MB / 0.6219 GB, free: 6.199 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009718/0.5586, allocations: 1.038 MB / 0.6229 GB, free: 5.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001568/0.5602, allocations: 1.077 MB / 0.624 GB, free: 4.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.5603, allocations: 305.1 kB / 0.6243 GB, free: 3.789 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003305/0.5636, allocations: 1.881 MB / 0.6261 GB, free: 1.902 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005775/0.5694, allocations: 4.645 MB / 0.6306 GB, free: 11.97 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009155/0.5786, allocations: 7.097 MB / 0.6376 GB, free: 3.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.344e-05/0.5786, allocations: 28 kB / 0.6376 GB, free: 3.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01192/0.5905, allocations: 6.996 MB / 0.6444 GB, free: 13.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.764e-05/0.5906, allocations: 44 kB / 0.6445 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.142e-05/0.5907, allocations: 96 kB / 0.6446 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.592, allocations: 0.5494 MB / 0.6451 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/0.5958, allocations: 1.213 MB / 0.6463 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009547/0.6054, allocations: 7.156 MB / 0.6533 GB, free: 3.762 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003242/0.6086, allocations: 287.3 kB / 0.6536 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006347/0.6092, allocations: 312 kB / 0.6539 GB, free: 3.18 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.003057/0.6123, allocations: 1.839 MB / 0.6556 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.6128, allocations: 313.9 kB / 0.6559 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006936/0.6197, allocations: 3.777 MB / 0.6596 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/0.6198, allocations: 39.98 kB / 0.6597 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.6198, allocations: 11.94 kB / 0.6597 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.6198, allocations: 12.52 kB / 0.6597 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/0.6387, allocations: 10.45 MB / 0.6699 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.6387, allocations: 8 kB / 0.6699 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.6402, allocations: 383.4 kB / 0.6703 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001423/0.6416, allocations: 0.5604 MB / 0.6708 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002981/0.6419, allocations: 50.73 kB / 0.6709 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.653, allocations: 7.897 MB / 0.6786 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004154/0.6571, allocations: 3.181 MB / 0.6817 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009466/0.6666, allocations: 5.756 MB / 0.6873 GB, free: 196 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/0.6682, allocations: 0.5603 MB / 0.6879 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003653/0.6686, allocations: 56 kB / 0.6879 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.6698, allocations: 135.1 kB / 0.688 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/0.6702, allocations: 177.5 kB / 0.6882 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/0.6703, allocations: 75.98 kB / 0.6883 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00322/0.6736, allocations: 1.987 MB / 0.6902 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.6736, allocations: 0 / 0.6902 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003796/0.6774, allocations: 0.957 MB / 0.6912 GB, free: 12.25 MB / 0.5294 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.009639/0.687, allocations: 6.437 MB / 0.6974 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008321/0.6953, allocations: 4.831 MB / 0.7022 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.6953, allocations: 320 / 0.7022 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.6985, allocations: 1.998 MB / 0.7041 GB, free: 14.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.7007, allocations: 479.7 kB / 0.7046 GB, free: 14.35 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2398/0.9406, allocations: 38.41 MB / 0.7421 GB, free: 168.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/0.9434, allocations: 2.994 MB / 0.745 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003358/0.9467, allocations: 1.599 MB / 0.7466 GB, free: 167.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/0.9486, allocations: 1.652 MB / 0.7482 GB, free: 166.1 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/0.9486, allocations: 0 / 0.7482 GB, free: 166.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1148/1.063, allocations: 70.59 MB / 0.8171 GB, free: 101.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.02/20.08, allocations: 10.38 kB / 0.8171 GB, free: 101.8 MB / 0.545 GB " [Timeout remaining time 640] (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: 22.741391621064395] Failed to read output from testmodel.py, exit status != 0: 20.229339418001473 20.238632738 19.88911075 Calling exit ...