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.005704/0.005704, allocations: 101 kB / 15.73 MB, free: 6.059 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.001437/0.001437, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0506/0.0506, allocations: 9.129 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 67.89 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.08525, allocations: 51.45 MB / 465.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.0117/0.09699, allocations: 10.09 MB / 475.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006255/0.1033, allocations: 2.885 MB / 478.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.1055, allocations: 39.94 kB / 478.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1071, allocations: 433 kB / 479 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004643/0.1118, allocations: 1.603 MB / 480.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006776/0.1125, allocations: 179.7 kB / 480.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004103/0.1166, allocations: 2.971 MB / 483.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001697/0.1183, allocations: 1.05 MB / 484.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.1202, allocations: 1.085 MB / 485.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002285/0.1226, allocations: 1.584 MB / 487.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007466/0.1233, allocations: 268 kB / 487.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.1253, allocations: 0.8659 MB / 488.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001684/0.127, allocations: 1.484 MB / 490.1 MB, free: 9.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.1294, allocations: 1.856 MB / 492 MB, free: 7.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007449/0.1369, allocations: 5.8 MB / 497.8 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1369, allocations: 3.938 kB / 497.8 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1369, allocations: 7.875 kB / 497.8 MB, free: 1.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001616/0.1371, allocations: 0 / 497.8 MB, free: 1.82 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.02795/0.165, allocations: 7.067 MB / 0.493 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1651, allocations: 8.031 kB / 0.493 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.1663, allocations: 0.6423 MB / 0.4936 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007408/0.1737, allocations: 1.874 MB / 0.4955 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003499/0.1772, allocations: 1.737 MB / 0.4972 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.1774, allocations: 181.7 kB / 0.4973 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007745/0.1782, allocations: 247.8 kB / 0.4976 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2018/0.38, allocations: 10.4 MB / 0.5077 GB, free: 38.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.3801, allocations: 32.39 kB / 0.5078 GB, free: 38.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004859/0.3806, allocations: 112.6 kB / 0.5079 GB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003634/0.3843, allocations: 2.154 MB / 0.51 GB, free: 37.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02312/0.4074, allocations: 10.36 MB / 0.5201 GB, free: 34.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04021/0.4477, allocations: 33.49 MB / 0.5528 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01599/0.4637, allocations: 4.45 MB / 0.5571 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002498/0.4662, allocations: 1.658 MB / 0.5588 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/0.4791, allocations: 9.408 MB / 0.5679 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.63e-05/0.4792, allocations: 54.75 kB / 0.568 GB, free: 4.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=232): time 4.488e-06/0.4792, allocations: 0 / 0.568 GB, free: 4.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=272): time 0.03365/0.5129, allocations: 13.37 MB / 0.5811 GB, free: 7.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004822/0.5177, allocations: 3.528 MB / 0.5845 GB, free: 3.605 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004853/0.5226, allocations: 3.108 MB / 0.5875 GB, free: 488 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003424/0.523, allocations: 66.92 kB / 0.5876 GB, free: 416 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/0.525, allocations: 2.509 MB / 0.59 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.5262, allocations: 1.027 MB / 0.5911 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/0.5279, allocations: 1.077 MB / 0.5921 GB, free: 11.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.528, allocations: 301.1 kB / 0.5924 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/0.5315, allocations: 1.889 MB / 0.5942 GB, free: 9.559 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005864/0.5373, allocations: 4.637 MB / 0.5988 GB, free: 3.586 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.5475, allocations: 7.102 MB / 0.6057 GB, free: 11.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.189e-05/0.5476, allocations: 24 kB / 0.6057 GB, free: 11.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01406/0.5617, allocations: 7.008 MB / 0.6126 GB, free: 4.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.895e-05/0.5618, allocations: 48.03 kB / 0.6126 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.5619, allocations: 102.6 kB / 0.6127 GB, free: 3.973 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.5634, allocations: 0.5411 MB / 0.6132 GB, free: 3.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004218/0.5677, allocations: 1.228 MB / 0.6144 GB, free: 2.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.5778, allocations: 7.362 MB / 0.6216 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/0.5814, allocations: 271.9 kB / 0.6219 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006251/0.582, allocations: 312.1 kB / 0.6222 GB, free: 9.969 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.003018/0.5851, allocations: 1.85 MB / 0.624 GB, free: 8.105 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005368/0.5856, allocations: 313.9 kB / 0.6243 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007024/0.5926, allocations: 3.79 MB / 0.628 GB, free: 3.949 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/0.5928, allocations: 48.8 kB / 0.628 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.5928, allocations: 11.98 kB / 0.628 GB, free: 3.891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/0.5929, allocations: 11.95 kB / 0.6281 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/0.6114, allocations: 10.62 MB / 0.6384 GB, free: 9.031 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/0.6115, allocations: 4 kB / 0.6384 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.6131, allocations: 387.4 kB / 0.6388 GB, free: 8.648 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.6145, allocations: 0.552 MB / 0.6393 GB, free: 8.09 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002437/0.6148, allocations: 51.98 kB / 0.6394 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01151/0.6263, allocations: 8.106 MB / 0.6473 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004286/0.6307, allocations: 3.278 MB / 0.6505 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009778/0.6405, allocations: 5.78 MB / 0.6561 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.642, allocations: 0.6317 MB / 0.6568 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004823/0.6425, allocations: 48 kB / 0.6568 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.6439, allocations: 123.9 kB / 0.6569 GB, free: 5.484 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/0.6443, allocations: 185.5 kB / 0.6571 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/0.6445, allocations: 75.98 kB / 0.6572 GB, free: 5.227 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003239/0.6477, allocations: 1.984 MB / 0.6591 GB, free: 3.238 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6477, allocations: 0 / 0.6591 GB, free: 3.238 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004119/0.6519, allocations: 0.9803 MB / 0.6601 GB, free: 2.258 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.01013/0.662, allocations: 6.466 MB / 0.6664 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008993/0.671, allocations: 5.017 MB / 0.6713 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.6711, allocations: 1.688 kB / 0.6713 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00379/0.6749, allocations: 2.113 MB / 0.6734 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003266/0.6782, allocations: 474.9 kB / 0.6738 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2461/0.9243, allocations: 38.37 MB / 0.7113 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003313/0.9277, allocations: 2.996 MB / 0.7142 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004083/0.9318, allocations: 1.599 MB / 0.7158 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/0.934, allocations: 1.652 MB / 0.7174 GB, free: 180 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/0.934, allocations: 1.5 kB / 0.7174 GB, free: 180 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/1.038, allocations: 65.61 MB / 0.7815 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.93/17.96, allocations: 14.23 kB / 0.7815 GB, free: 128.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)