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.00103/0.001031, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001056/0.001056, allocations: 192.3 kB / 16.14 MB, free: 6.711 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.271/1.271, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1434/0.1434, allocations: 9.092 MB / 299 MB, free: 1.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.91 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08488, allocations: 51.44 MB / 412.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.1651/0.25, allocations: 36.3 MB / 449.1 MB, free: 22.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.2621, allocations: 7.771 MB / 456.8 MB, free: 17.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00453/0.2666, allocations: 134.6 kB / 457 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007524/0.2674, allocations: 351.3 kB / 457.3 MB, free: 17.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002313/0.2697, allocations: 1.505 MB / 458.8 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.2701, allocations: 157.7 kB / 459 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002243/0.2723, allocations: 4.146 MB / 463.1 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007424/0.2731, allocations: 0.9591 MB / 464.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006748/0.2738, allocations: 0.9243 MB / 465 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.2749, allocations: 1.608 MB / 466.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002678/0.2752, allocations: 158 kB / 466.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.2762, allocations: 0.7966 MB / 467.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006984/0.2769, allocations: 1.395 MB / 469 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009009/0.2778, allocations: 1.758 MB / 470.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003382/0.2812, allocations: 5.344 MB / 476.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2812, allocations: 0 / 476.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2812, allocations: 5.531 kB / 476.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.818e-05/0.2813, allocations: 0 / 476.1 MB, free: 9.727 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.02565/0.3069, allocations: 6.972 MB / 483 MB, free: 7.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.307, allocations: 11.69 kB / 483 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000869/0.3079, allocations: 0.638 MB / 483.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006409/0.3143, allocations: 1.857 MB / 485.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.3167, allocations: 1.716 MB / 487.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.3168, allocations: 184.4 kB / 487.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004684/0.3173, allocations: 246 kB / 487.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.3322, allocations: 10.41 MB / 498.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.88e-05/0.3322, allocations: 31.66 kB / 498.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003665/0.3326, allocations: 123.8 kB / 498.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.3357, allocations: 2.146 MB / 0.4887 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.3557, allocations: 10.36 MB / 0.4988 GB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03899/0.3947, allocations: 33.52 MB / 0.5315 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/0.4102, allocations: 4.45 MB / 0.5359 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/0.4126, allocations: 1.662 MB / 0.5375 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.4227, allocations: 9.386 MB / 0.5466 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.4227, allocations: 56.56 kB / 0.5467 GB, free: 15.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=232): time 3.717e-06/0.4228, allocations: 0 / 0.5467 GB, free: 15.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=272): time 0.02583/0.4486, allocations: 13.3 MB / 0.5597 GB, free: 1.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003606/0.4522, allocations: 3.362 MB / 0.563 GB, free: 14.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.4559, allocations: 3.095 MB / 0.566 GB, free: 11.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.4561, allocations: 69.69 kB / 0.5661 GB, free: 11.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.4573, allocations: 2.408 MB / 0.5684 GB, free: 8.816 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006589/0.458, allocations: 0.9904 MB / 0.5694 GB, free: 7.812 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.4592, allocations: 1.072 MB / 0.5704 GB, free: 6.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.976e-05/0.4593, allocations: 301.1 kB / 0.5707 GB, free: 6.434 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002578/0.4619, allocations: 1.889 MB / 0.5726 GB, free: 4.539 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1445/0.6063, allocations: 4.64 MB / 0.5771 GB, free: 124.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006695/0.6131, allocations: 7.091 MB / 0.584 GB, free: 120.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/0.6131, allocations: 28.38 kB / 0.584 GB, free: 120.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.008731/0.6219, allocations: 6.994 MB / 0.5909 GB, free: 118.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.6219, allocations: 44.75 kB / 0.5909 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.604e-05/0.622, allocations: 96.16 kB / 0.591 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.6231, allocations: 0.5447 MB / 0.5915 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003015/0.6261, allocations: 1.215 MB / 0.5927 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006226/0.6323, allocations: 6.794 MB / 0.5994 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/0.6352, allocations: 275.6 kB / 0.5996 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003216/0.6355, allocations: 311.6 kB / 0.5999 GB, free: 113.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 (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.002064/0.6376, allocations: 1.851 MB / 0.6017 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.6379, allocations: 298.2 kB / 0.602 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004923/0.6429, allocations: 3.8 MB / 0.6057 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-05/0.643, allocations: 36.53 kB / 0.6058 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.643, allocations: 6.062 kB / 0.6058 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.692e-05/0.643, allocations: 14.06 kB / 0.6058 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.6561, allocations: 10.72 MB / 0.6162 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.6561, allocations: 3.719 kB / 0.6162 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.6575, allocations: 375.3 kB / 0.6166 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.6587, allocations: 0.5513 MB / 0.6171 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.6589, allocations: 54.53 kB / 0.6172 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007702/0.6666, allocations: 7.386 MB / 0.6244 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002812/0.6694, allocations: 3.117 MB / 0.6275 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006493/0.6759, allocations: 5.762 MB / 0.6331 GB, free: 97.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009267/0.6768, allocations: 0.6253 MB / 0.6337 GB, free: 97.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003213/0.6772, allocations: 51.73 kB / 0.6337 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.6782, allocations: 120.3 kB / 0.6339 GB, free: 97.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.6785, allocations: 179.7 kB / 0.634 GB, free: 97.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.6786, allocations: 79.36 kB / 0.6341 GB, free: 97.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002143/0.6808, allocations: 1.988 MB / 0.636 GB, free: 96.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6808, allocations: 0 / 0.636 GB, free: 96.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003147/0.684, allocations: 0.9762 MB / 0.637 GB, free: 96.2 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.006147/0.6901, allocations: 6.445 MB / 0.6433 GB, free: 90.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005201/0.6953, allocations: 4.976 MB / 0.6481 GB, free: 85.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6953, allocations: 8.062 kB / 0.6482 GB, free: 85.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.6975, allocations: 2.104 MB / 0.6502 GB, free: 84.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.6992, allocations: 442.8 kB / 0.6506 GB, free: 83.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03917/0.7383, allocations: 44.33 MB / 0.6939 GB, free: 34.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/0.7405, allocations: 3.006 MB / 0.6969 GB, free: 31.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002961/0.7435, allocations: 1.59 MB / 0.6984 GB, free: 29.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/0.745, allocations: 1.647 MB / 0.7 GB, free: 27.87 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.745, allocations: 0 / 0.7 GB, free: 27.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8133/1.558, allocations: 67.14 MB / 0.7656 GB, free: 129.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.008162/1.566, allocations: 238.3 kB / 0.7658 GB, free: 129.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.25/4.817, allocations: 5.062 kB / 0.7658 GB, free: 129.1 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/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)