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.001738/0.001738, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002087/0.002087, allocations: 215 kB / 20.13 MB, free: 2.949 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.584/1.584, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.04898/0.04898, allocations: 9.231 MB / 318.8 MB, free: 15.64 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="cs",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.002143/0.002143, allocations: 75.19 kB / 443.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1017, allocations: 55.44 MB / 498.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01023/0.1119, allocations: 10.13 MB / 0.4969 GB, free: 12.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007895/0.1198, allocations: 2.928 MB / 0.4997 GB, free: 9.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.1218, allocations: 51.81 kB / 0.4998 GB, free: 9.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.1234, allocations: 445 kB / 0.5002 GB, free: 9.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004815/0.1282, allocations: 1.638 MB / 0.5018 GB, free: 7.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007145/0.1289, allocations: 187.6 kB / 0.502 GB, free: 7.184 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004783/0.1337, allocations: 2.94 MB / 0.5049 GB, free: 4.238 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.1355, allocations: 0.8982 MB / 0.5057 GB, free: 3.312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002135/0.1376, allocations: 1.113 MB / 0.5068 GB, free: 2.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.1404, allocations: 1.716 MB / 0.5085 GB, free: 484 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000826/0.1413, allocations: 272 kB / 0.5088 GB, free: 212 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.1434, allocations: 0.9128 MB / 0.5097 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.1454, allocations: 1.495 MB / 0.5111 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002912/0.1484, allocations: 1.844 MB / 0.5129 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008419/0.1568, allocations: 5.761 MB / 0.5185 GB, free: 6.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1568, allocations: 0 / 0.5185 GB, free: 6.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1568, allocations: 3.938 kB / 0.5186 GB, free: 6.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001979/0.157, allocations: 4 kB / 0.5186 GB, free: 6.145 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.03113/0.1881, allocations: 7.134 MB / 0.5255 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.1882, allocations: 8.031 kB / 0.5255 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001832/0.1884, allocations: 84.89 kB / 0.5256 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002101/0.1905, allocations: 0.6423 MB / 0.5262 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008148/0.1986, allocations: 1.874 MB / 0.5281 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004824/0.2034, allocations: 1.741 MB / 0.5298 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002236/0.2037, allocations: 180.7 kB / 0.5299 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/0.2049, allocations: 251.8 kB / 0.5302 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02209/0.227, allocations: 10.4 MB / 0.5403 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.2271, allocations: 39.7 kB / 0.5404 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004125/0.2275, allocations: 115.8 kB / 0.5405 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003905/0.2314, allocations: 2.15 MB / 0.5426 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/0.2571, allocations: 10.36 MB / 0.5527 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05624/0.3133, allocations: 33.47 MB / 0.5854 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.243/0.5563, allocations: 4.324 MB / 0.5896 GB, free: 86.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00339/0.5597, allocations: 1.577 MB / 0.5911 GB, free: 86.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01689/0.5766, allocations: 9.411 MB / 0.6003 GB, free: 80.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.614e-05/0.5766, allocations: 55.56 kB / 0.6004 GB, free: 80.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=232): time 6.012e-06/0.5766, allocations: 0 / 0.6004 GB, free: 80.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03155/0.6082, allocations: 13.35 MB / 0.6134 GB, free: 74.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006032/0.6142, allocations: 3.529 MB / 0.6169 GB, free: 71.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007635/0.6219, allocations: 3.098 MB / 0.6199 GB, free: 68.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005871/0.6224, allocations: 72.97 kB / 0.62 GB, free: 68.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001681/0.6241, allocations: 2.51 MB / 0.6224 GB, free: 65.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001643/0.6258, allocations: 1.029 MB / 0.6234 GB, free: 64.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001492/0.6273, allocations: 1.073 MB / 0.6245 GB, free: 63.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.891e-05/0.6273, allocations: 305.1 kB / 0.6248 GB, free: 63.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00238/0.6297, allocations: 1.881 MB / 0.6266 GB, free: 61.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003245/0.6329, allocations: 4.644 MB / 0.6311 GB, free: 55.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006695/0.6396, allocations: 7.101 MB / 0.6381 GB, free: 47.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.053e-05/0.6397, allocations: 28 kB / 0.6381 GB, free: 47.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01074/0.6504, allocations: 7 MB / 0.6449 GB, free: 40.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.974e-05/0.6505, allocations: 52.19 kB / 0.645 GB, free: 40.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.254e-05/0.6506, allocations: 96 kB / 0.6451 GB, free: 39.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.6517, allocations: 0.537 MB / 0.6456 GB, free: 39.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003734/0.6554, allocations: 1.218 MB / 0.6468 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006892/0.6623, allocations: 7.37 MB / 0.654 GB, free: 30.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003627/0.6659, allocations: 276.1 kB / 0.6542 GB, free: 30.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005917/0.6665, allocations: 312 kB / 0.6545 GB, free: 29.94 MB / 446.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.002722/0.6693, allocations: 1.851 MB / 0.6564 GB, free: 28.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005219/0.6698, allocations: 309.9 kB / 0.6566 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005277/0.6751, allocations: 3.761 MB / 0.6603 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/0.6752, allocations: 39.98 kB / 0.6604 GB, free: 23.92 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.6752, allocations: 8 kB / 0.6604 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/0.6752, allocations: 15.89 kB / 0.6604 GB, free: 23.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/0.6893, allocations: 10.61 MB / 0.6707 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.6893, allocations: 8 kB / 0.6707 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.6907, allocations: 379.5 kB / 0.6711 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.6919, allocations: 0.552 MB / 0.6716 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.692, allocations: 59.67 kB / 0.6717 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007906/0.6999, allocations: 8.105 MB / 0.6796 GB, free: 3.746 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002803/0.7027, allocations: 3.284 MB / 0.6828 GB, free: 336 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009947/0.7126, allocations: 5.758 MB / 0.6885 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/0.7143, allocations: 0.6325 MB / 0.6891 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004557/0.7148, allocations: 48 kB / 0.6891 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.7161, allocations: 123.8 kB / 0.6892 GB, free: 9.613 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004525/0.7166, allocations: 177.6 kB / 0.6894 GB, free: 9.438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/0.7167, allocations: 75.98 kB / 0.6895 GB, free: 9.363 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003561/0.7203, allocations: 1.984 MB / 0.6914 GB, free: 7.375 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7203, allocations: 0 / 0.6914 GB, free: 7.375 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005162/0.7254, allocations: 0.9684 MB / 0.6924 GB, free: 6.41 MB / 462.1 MB 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.01097/0.7364, allocations: 6.436 MB / 0.6986 GB, free: 15.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009162/0.7456, allocations: 4.832 MB / 0.7034 GB, free: 10.99 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.7456, allocations: 0 / 0.7034 GB, free: 10.99 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003904/0.7495, allocations: 1.986 MB / 0.7053 GB, free: 8.984 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.7523, allocations: 488.4 kB / 0.7058 GB, free: 8.527 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07201/0.8244, allocations: 38.34 MB / 0.7432 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004258/0.8286, allocations: 3.004 MB / 0.7461 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00433/0.8329, allocations: 1.598 MB / 0.7477 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002925/0.8359, allocations: 1.647 MB / 0.7493 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of SimCode: time 1.903e-06/0.8359, allocations: 3.938 kB / 0.7493 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3545/1.19, allocations: 66.07 MB / 0.8138 GB, free: 177.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.39/18.58, allocations: 0 / 0.8138 GB, free: 177.7 MB / 0.545 GB " [Timeout remaining time 641] (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: 21.82087750703795] Failed to read output from testmodel.py, exit status != 0: 18.774279481032863 18.788089207 18.62812638 Calling exit ...