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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.001062/0.001062, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.001162/0.001162, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1847/0.1847, allocations: 9.111 MB / 300.1 MB, free: 2.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003429, allocations: 8 kB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1383, allocations: 52.43 MB / 415.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2741/0.4125, allocations: 30.9 MB / 446.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.4287, allocations: 7.781 MB / 454.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007311/0.436, allocations: 131.4 kB / 454.3 MB, free: 20.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006042/0.4421, allocations: 1.514 MB / 455.8 MB, free: 20.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01515/0.4573, allocations: 4.592 MB / 460.4 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.4591, allocations: 172.5 kB / 460.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003146/0.4622, allocations: 1.696 MB / 462.3 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.4635, allocations: 0.9361 MB / 463.2 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.4645, allocations: 0.8195 MB / 464.1 MB, free: 16.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.4656, allocations: 1.189 MB / 465.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.4659, allocations: 151 kB / 465.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.4671, allocations: 0.6731 MB / 466.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009406/0.468, allocations: 1.275 MB / 467.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000592/0.4686, allocations: 0.7377 MB / 468.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.4725, allocations: 4.23 MB / 472.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4725, allocations: 4 kB / 472.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4725, allocations: 0 / 472.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001461/0.4726, allocations: 0 / 472.3 MB, free: 13.8 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.02912/0.5018, allocations: 6.364 MB / 478.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.5018, allocations: 13.69 kB / 478.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00222/0.5041, allocations: 0.6421 MB / 479.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008988/0.5131, allocations: 2.261 MB / 481.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005085/0.5182, allocations: 1.663 MB / 483.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.5184, allocations: 183.3 kB / 483.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/0.5196, allocations: 240.1 kB / 483.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02404/0.5437, allocations: 10.48 MB / 494.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/0.5439, allocations: 32.97 kB / 494.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005891/0.5445, allocations: 120.9 kB / 494.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003697/0.5482, allocations: 2.149 MB / 496.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02458/0.5728, allocations: 10.43 MB / 0.495 GB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05612/0.6289, allocations: 33.15 MB / 0.5274 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/0.6467, allocations: 4.473 MB / 0.5317 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003977/0.6507, allocations: 3.762 MB / 0.5354 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.6508, allocations: 56.56 kB / 0.5355 GB, free: 13.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=265): time 6.272e-06/0.6508, allocations: 0 / 0.5355 GB, free: 13.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=305): time 0.0517/0.7025, allocations: 15.75 MB / 0.5509 GB, free: 12.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004135/0.7067, allocations: 3.437 MB / 0.5542 GB, free: 9.367 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004181/0.7109, allocations: 2.95 MB / 0.5571 GB, free: 6.402 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004702/0.7114, allocations: 73.7 kB / 0.5572 GB, free: 6.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.7129, allocations: 2.328 MB / 0.5594 GB, free: 3.961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/0.7142, allocations: 1.09 MB / 0.5605 GB, free: 2.855 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.7145, allocations: 108 kB / 0.5606 GB, free: 2.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003315/0.7148, allocations: 0.5376 MB / 0.5611 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.7178, allocations: 1.889 MB / 0.563 GB, free: 320 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00468/0.7226, allocations: 4.63 MB / 0.5675 GB, free: 10.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004801/0.7274, allocations: 2.986 MB / 0.5704 GB, free: 7.359 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.293e-05/0.7275, allocations: 28 kB / 0.5704 GB, free: 7.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=727) (initialization): time 0.01339/0.7409, allocations: 7.024 MB / 0.5773 GB, free: 304 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.358e-05/0.741, allocations: 44 kB / 0.5773 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.7411, allocations: 104 kB / 0.5774 GB, free: 156 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2461/0.9872, allocations: 0.5467 MB / 0.578 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004583/0.9919, allocations: 1.23 MB / 0.5792 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007264/0.9991, allocations: 6.952 MB / 0.586 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004584/1.004, allocations: 274.2 kB / 0.5862 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/1.005, allocations: 313.2 kB / 0.5865 GB, free: 118.6 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 (663): * Single equations (assignments): 657 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 26,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004339/1.009, allocations: 1.86 MB / 0.5883 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006687/1.01, allocations: 302.5 kB / 0.5886 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006387/1.016, allocations: 4.364 MB / 0.5929 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/1.017, allocations: 41.38 kB / 0.5929 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.017, allocations: 5.969 kB / 0.5929 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.712e-05/1.017, allocations: 13.45 kB / 0.5929 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/1.035, allocations: 11.89 MB / 0.6046 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/1.035, allocations: 8.938 kB / 0.6046 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.037, allocations: 434 kB / 0.605 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/1.038, allocations: 0.5679 MB / 0.6055 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000215/1.039, allocations: 65.64 kB / 0.6056 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009489/1.048, allocations: 7.596 MB / 0.613 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003788/1.052, allocations: 3.213 MB / 0.6161 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/1.063, allocations: 7.195 MB / 0.6232 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/1.065, allocations: 0.6617 MB / 0.6238 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005656/1.065, allocations: 61.52 kB / 0.6239 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/1.067, allocations: 136 kB / 0.624 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004719/1.067, allocations: 205.6 kB / 0.6242 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/1.067, allocations: 95.23 kB / 0.6243 GB, free: 101.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003382/1.071, allocations: 1.903 MB / 0.6262 GB, free: 100.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.071, allocations: 0 / 0.6262 GB, free: 100.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005371/1.076, allocations: 0.9956 MB / 0.6271 GB, free: 100.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (233): * Single equations (assignments): 227 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 26,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009968/1.086, allocations: 10.6 MB / 0.6375 GB, free: 93.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008506/1.095, allocations: 5.118 MB / 0.6425 GB, free: 90.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.531e-05/1.095, allocations: 4 kB / 0.6425 GB, free: 90.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/1.098, allocations: 2.24 MB / 0.6447 GB, free: 89.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/1.1, allocations: 416.5 kB / 0.6451 GB, free: 88.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06173/1.162, allocations: 94.11 MB / 0.737 GB, free: 8.527 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004619/1.167, allocations: 3.098 MB / 0.74 GB, free: 5.395 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004433/1.171, allocations: 1.664 MB / 0.7416 GB, free: 3.727 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003486/1.175, allocations: 1.671 MB / 0.7433 GB, free: 2.055 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/1.175, allocations: 0 / 0.7433 GB, free: 2.055 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3039/1.479, allocations: 72.13 MB / 0.8137 GB, free: 99.83 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/1.479, allocations: 221.1 kB / 0.8139 GB, free: 99.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.843/5.321, allocations: 4 kB / 0.8139 GB, free: 99.59 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: