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.01108/0.01108, allocations: 99.11 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0022/0.002201, allocations: 189.8 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.672/2.672, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.07861/0.07861, allocations: 9.127 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 59.91 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1845, allocations: 51.45 MB / 465.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.022/0.2066, allocations: 10.09 MB / 475.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.2175, allocations: 2.893 MB / 478.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003095/0.2207, allocations: 43.88 kB / 478.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.2233, allocations: 429.1 kB / 479 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008923/0.2323, allocations: 1.646 MB / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.2341, allocations: 183.7 kB / 480.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008789/0.2429, allocations: 2.969 MB / 483.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003808/0.2468, allocations: 1.054 MB / 484.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003663/0.2505, allocations: 1.085 MB / 486 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004226/0.2548, allocations: 1.58 MB / 487.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001411/0.2563, allocations: 268 kB / 487.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003442/0.2597, allocations: 0.866 MB / 488.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002685/0.2624, allocations: 1.484 MB / 490.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004337/0.2668, allocations: 1.86 MB / 492 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.2799, allocations: 5.8 MB / 497.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.28, allocations: 3.938 kB / 497.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.28, allocations: 0 / 497.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002878/0.2803, allocations: 0 / 497.8 MB, free: 1.766 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.05019/0.3305, allocations: 7.072 MB / 0.493 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001221/0.3307, allocations: 12.03 kB / 0.4931 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003662/0.3344, allocations: 0.6384 MB / 0.4937 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/0.3471, allocations: 1.878 MB / 0.4955 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006577/0.3538, allocations: 1.733 MB / 0.4972 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004647/0.3543, allocations: 192.9 kB / 0.4974 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/0.3565, allocations: 243.7 kB / 0.4976 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4706/0.8271, allocations: 10.4 MB / 0.5078 GB, free: 37.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/0.8273, allocations: 36.3 kB / 0.5078 GB, free: 37.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000637/0.828, allocations: 120.5 kB / 0.5079 GB, free: 37.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006461/0.8344, allocations: 2.143 MB / 0.51 GB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04159/0.8761, allocations: 10.36 MB / 0.5201 GB, free: 34.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07891/0.9551, allocations: 33.49 MB / 0.5528 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.026/0.9811, allocations: 4.447 MB / 0.5572 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004677/0.9859, allocations: 1.66 MB / 0.5588 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02253/1.008, allocations: 9.394 MB / 0.568 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.953e-05/1.009, allocations: 60.56 kB / 0.568 GB, free: 4.637 MB / 398.1 MB Notification: Performance of pre-optimization done (n=232): time 1.318e-05/1.009, allocations: 0 / 0.568 GB, free: 4.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=272): time 0.05695/1.066, allocations: 13.38 MB / 0.5811 GB, free: 7.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007103/1.073, allocations: 3.52 MB / 0.5845 GB, free: 3.539 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009041/1.082, allocations: 3.108 MB / 0.5876 GB, free: 420 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006926/1.083, allocations: 72.8 kB / 0.5876 GB, free: 344 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003346/1.086, allocations: 2.513 MB / 0.5901 GB, free: 13.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002468/1.089, allocations: 1.023 MB / 0.5911 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004951/1.094, allocations: 1.081 MB / 0.5922 GB, free: 11.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/1.094, allocations: 305.1 kB / 0.5924 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006078/1.1, allocations: 1.889 MB / 0.5943 GB, free: 9.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01185/1.112, allocations: 4.637 MB / 0.5988 GB, free: 3.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01687/1.129, allocations: 7.104 MB / 0.6058 GB, free: 11.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001656/1.129, allocations: 24 kB / 0.6058 GB, free: 11.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02536/1.154, allocations: 7.009 MB / 0.6126 GB, free: 4.031 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002472/1.155, allocations: 48 kB / 0.6127 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002656/1.155, allocations: 99.94 kB / 0.6128 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/1.157, allocations: 0.5408 MB / 0.6133 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00767/1.165, allocations: 1.224 MB / 0.6145 GB, free: 2.113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/1.18, allocations: 7.349 MB / 0.6217 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007951/1.188, allocations: 275.9 kB / 0.6219 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/1.19, allocations: 315.9 kB / 0.6222 GB, free: 9.891 MB / 462.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.007265/1.198, allocations: 1.849 MB / 0.624 GB, free: 8.031 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1.199, allocations: 306 kB / 0.6243 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/1.21, allocations: 3.798 MB / 0.628 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000253/1.21, allocations: 42.88 kB / 0.6281 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.124e-05/1.21, allocations: 8 kB / 0.6281 GB, free: 3.828 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.929e-05/1.211, allocations: 15.95 kB / 0.6281 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03561/1.246, allocations: 10.62 MB / 0.6385 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-05/1.246, allocations: 4.281 kB / 0.6385 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002957/1.249, allocations: 391.4 kB / 0.6388 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002119/1.251, allocations: 0.548 MB / 0.6394 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004557/1.252, allocations: 59.97 kB / 0.6394 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0159/1.268, allocations: 8.102 MB / 0.6473 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006146/1.274, allocations: 3.286 MB / 0.6506 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01508/1.289, allocations: 5.776 MB / 0.6562 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002932/1.292, allocations: 0.6316 MB / 0.6568 GB, free: 5.578 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/1.293, allocations: 52.06 kB / 0.6569 GB, free: 5.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/1.296, allocations: 124 kB / 0.657 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006914/1.297, allocations: 181.6 kB / 0.6572 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002738/1.297, allocations: 75.98 kB / 0.6572 GB, free: 5.152 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005864/1.303, allocations: 1.987 MB / 0.6592 GB, free: 3.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.92e-07/1.303, allocations: 0 / 0.6592 GB, free: 3.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009502/1.313, allocations: 0.9803 MB / 0.6601 GB, free: 2.18 MB / 494.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.017/1.33, allocations: 6.454 MB / 0.6664 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0147/1.345, allocations: 5.027 MB / 0.6713 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/1.345, allocations: 0 / 0.6713 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.006268/1.351, allocations: 2.107 MB / 0.6734 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006674/1.358, allocations: 477 kB / 0.6738 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6271/1.985, allocations: 38.38 MB / 0.7113 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009518/1.994, allocations: 3.001 MB / 0.7143 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009502/2.004, allocations: 1.592 MB / 0.7158 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004974/2.009, allocations: 1.648 MB / 0.7174 GB, free: 180 MB / 0.5294 GB Notification: Performance of SimCode: time 2.655e-06/2.009, allocations: 1.25 kB / 0.7174 GB, free: 180 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3465/2.356, allocations: 65.62 MB / 0.7815 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.62/35.98, allocations: 10.55 kB / 0.7815 GB, free: 128.7 MB / 0.5294 GB (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)