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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002902/0.002902, allocations: 193.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.249/0.249, allocations: 9.098 MB / 299.5 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.91 kB / 362.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1433, allocations: 51.43 MB / 413.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2515/0.3948, allocations: 10.08 MB / 423.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006047/0.4009, allocations: 2.893 MB / 426.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.4027, allocations: 43 kB / 426.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.4039, allocations: 431 kB / 426.9 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003934/0.4079, allocations: 1.602 MB / 428.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006589/0.4086, allocations: 179.3 kB / 428.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004053/0.4126, allocations: 2.957 MB / 431.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.414, allocations: 1.054 MB / 432.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001641/0.4156, allocations: 1.075 MB / 433.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.4174, allocations: 1.579 MB / 435.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004992/0.4179, allocations: 268.6 kB / 435.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.4195, allocations: 0.8627 MB / 436.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00142/0.4209, allocations: 1.484 MB / 438 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.4237, allocations: 1.86 MB / 439.8 MB, free: 31.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008356/0.4321, allocations: 5.501 MB / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4322, allocations: 0 / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4322, allocations: 0 / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.4323, allocations: 3.219 kB / 445.3 MB, free: 29.89 MB / 350.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.04899/0.4813, allocations: 6.964 MB / 452.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.007e-05/0.4814, allocations: 12.03 kB / 452.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003544/0.485, allocations: 0.6393 MB / 452.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0152/0.5002, allocations: 1.854 MB / 454.8 MB, free: 26.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006785/0.5071, allocations: 1.72 MB / 456.5 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003402/0.5075, allocations: 186.5 kB / 456.7 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001898/0.5094, allocations: 250.5 kB / 457 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03231/0.5417, allocations: 10.4 MB / 467.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002951/0.5421, allocations: 38.41 kB / 467.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.5436, allocations: 115 kB / 467.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005019/0.5486, allocations: 2.154 MB / 469.7 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02716/0.5758, allocations: 10.36 MB / 480 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05969/0.6355, allocations: 33.51 MB / 0.5015 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01971/0.6553, allocations: 4.459 MB / 0.5058 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003403/0.6588, allocations: 1.658 MB / 0.5075 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01821/0.677, allocations: 9.392 MB / 0.5166 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.136e-05/0.6772, allocations: 52.56 kB / 0.5167 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=232): time 8.686e-06/0.6772, allocations: 0 / 0.5167 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=272): time 0.03567/0.7129, allocations: 13.31 MB / 0.5297 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004977/0.7179, allocations: 3.535 MB / 0.5331 GB, free: 12.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007297/0.7252, allocations: 3.095 MB / 0.5362 GB, free: 9.684 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005434/0.7258, allocations: 65.7 kB / 0.5362 GB, free: 9.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/0.7282, allocations: 2.41 MB / 0.5386 GB, free: 7.199 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00175/0.73, allocations: 0.9889 MB / 0.5395 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003406/0.7334, allocations: 1.066 MB / 0.5406 GB, free: 5.145 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.7336, allocations: 313.1 kB / 0.5409 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004145/0.7378, allocations: 1.881 MB / 0.5427 GB, free: 2.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006281/0.7441, allocations: 4.633 MB / 0.5472 GB, free: 12.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.7544, allocations: 7.107 MB / 0.5542 GB, free: 4.543 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/0.7545, allocations: 28 kB / 0.5542 GB, free: 4.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01706/0.7716, allocations: 6.991 MB / 0.561 GB, free: 13.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002224/0.7719, allocations: 50.19 kB / 0.5611 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003609/0.7723, allocations: 92 kB / 0.5612 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.7745, allocations: 0.5519 MB / 0.5617 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005322/0.7798, allocations: 1.217 MB / 0.5629 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.7906, allocations: 7.356 MB / 0.5701 GB, free: 3.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/0.7954, allocations: 282.1 kB / 0.5703 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/0.7965, allocations: 312 kB / 0.5706 GB, free: 3.395 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.004688/0.8012, allocations: 1.854 MB / 0.5725 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009914/0.8022, allocations: 288.2 kB / 0.5727 GB, free: 1.246 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2779/1.08, allocations: 3.792 MB / 0.5764 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/1.08, allocations: 39.39 kB / 0.5765 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.08, allocations: 6.469 kB / 0.5765 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.436e-05/1.08, allocations: 12.28 kB / 0.5765 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/1.097, allocations: 10.72 MB / 0.587 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.097, allocations: 9.5 kB / 0.587 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/1.099, allocations: 378.7 kB / 0.5873 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/1.1, allocations: 0.5506 MB / 0.5879 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/1.1, allocations: 53.7 kB / 0.5879 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008789/1.109, allocations: 8.102 MB / 0.5958 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003053/1.112, allocations: 3.286 MB / 0.599 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008933/1.121, allocations: 5.759 MB / 0.6047 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.123, allocations: 0.6167 MB / 0.6053 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/1.124, allocations: 50.94 kB / 0.6053 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.125, allocations: 122.5 kB / 0.6054 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005922/1.126, allocations: 175 kB / 0.6056 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.126, allocations: 76.23 kB / 0.6057 GB, free: 102.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004631/1.131, allocations: 1.985 MB / 0.6076 GB, free: 101.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.131, allocations: 0 / 0.6076 GB, free: 101.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005993/1.137, allocations: 0.9795 MB / 0.6086 GB, free: 101.4 MB / 446.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.0145/1.152, allocations: 6.447 MB / 0.6149 GB, free: 98.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01864/1.17, allocations: 8.755 MB / 0.6234 GB, free: 97.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.785e-05/1.17, allocations: 0 / 0.6234 GB, free: 97.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003859/1.174, allocations: 2.101 MB / 0.6255 GB, free: 96.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003983/1.178, allocations: 479.3 kB / 0.6259 GB, free: 96.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0741/1.252, allocations: 42.56 MB / 0.6675 GB, free: 52.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00623/1.259, allocations: 3.005 MB / 0.6704 GB, free: 49.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00687/1.265, allocations: 1.586 MB / 0.672 GB, free: 48.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003405/1.269, allocations: 1.655 MB / 0.6736 GB, free: 46.45 MB / 446.1 MB Notification: Performance of SimCode: time 1.924e-06/1.269, allocations: 0 / 0.6736 GB, free: 46.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1621/1.431, allocations: 68.66 MB / 0.7406 GB, free: 10.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.97, allocations: 0 / 0.7406 GB, free: 10.12 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)