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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009466/0.0009466, allocations: 177.5 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.5 MB / 229.6 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009968/0.0009969, allocations: 86.44 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03766/0.03766, allocations: 8.836 MB / 340.1 MB, free: 6.391 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.956e-05/1.95e-05, allocations: 1.812 kB / 398.8 MB, free: 47.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 52.4 MB / 451.2 MB, free: 4.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3648/0.4743, allocations: 87.29 MB / 0.5258 GB, free: 80.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4746, allocations: 81.55 kB / 0.5259 GB, free: 80.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1628/0.6374, allocations: 71.9 MB / 0.5961 GB, free: 18.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6374, allocations: 0 / 0.5961 GB, free: 18.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001007/0.6375, allocations: 60 kB / 0.5962 GB, free: 18.41 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.0237/0.6612, allocations: 4.607 MB / 0.6007 GB, free: 13.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.6613, allocations: 23.95 kB / 0.6007 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00969/0.671, allocations: 1.992 MB / 0.6027 GB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006487/0.6775, allocations: 2.004 MB / 0.6046 GB, free: 9.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.6778, allocations: 112 kB / 0.6047 GB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002319/0.6801, allocations: 195.9 kB / 0.6049 GB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00988/0.69, allocations: 6.612 MB / 0.6114 GB, free: 2.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.706, allocations: 8.848 MB / 0.62 GB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000137/0.7062, allocations: 31.66 kB / 0.62 GB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004988/0.7067, allocations: 23.92 kB / 0.6201 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001844/0.7086, allocations: 1.104 MB / 0.6211 GB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05202/0.7606, allocations: 31.63 MB / 0.652 GB, free: 7.953 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007655/0.7683, allocations: 5.467 MB / 0.6574 GB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.7708, allocations: 1.415 MB / 0.6588 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.7809, allocations: 6.918 MB / 0.6655 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.781, allocations: 48.56 kB / 0.6656 GB, free: 8.941 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 4.339e-06/0.781, allocations: 0 / 0.6656 GB, free: 8.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.01878/0.7998, allocations: 8.998 MB / 0.6743 GB, free: 15.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.7999, allocations: 77.36 kB / 0.6744 GB, free: 15.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003705/0.8036, allocations: 2.155 MB / 0.6765 GB, free: 13.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000223/0.8038, allocations: 25.7 kB / 0.6765 GB, free: 13.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.8055, allocations: 2.468 MB / 0.679 GB, free: 11.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000915/0.8064, allocations: 0.8438 MB / 0.6798 GB, free: 10.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.8066, allocations: 0 / 0.6798 GB, free: 10.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003903/0.807, allocations: 0.5732 MB / 0.6803 GB, free: 9.625 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002526/0.8095, allocations: 1.623 MB / 0.6819 GB, free: 7.992 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004724/0.8143, allocations: 4.397 MB / 0.6862 GB, free: 2.219 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2535/1.068, allocations: 2.723 MB / 0.6889 GB, free: 106 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/1.068, allocations: 27.12 kB / 0.6889 GB, free: 106 MB / 442.7 MB Notification: Performance of matching and sorting (n=704) (initialization): time 0.0126/1.081, allocations: 5.945 MB / 0.6947 GB, free: 105.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.612e-05/1.081, allocations: 48.38 kB / 0.6948 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/1.081, allocations: 101.6 kB / 0.6948 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/1.082, allocations: 0.5365 MB / 0.6954 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0042/1.086, allocations: 1.178 MB / 0.6965 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007944/1.094, allocations: 6.12 MB / 0.7025 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003831/1.098, allocations: 148.3 kB / 0.7026 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000736/1.099, allocations: 311.7 kB / 0.7029 GB, free: 103.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * 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],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (642): * Single equations (assignments): 636 * 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%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006741/1.1, allocations: 352.1 kB / 0.7033 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004377/1.104, allocations: 2.726 MB / 0.7059 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005459/1.105, allocations: 250.4 kB / 0.7062 GB, free: 102.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004812/1.109, allocations: 3.051 MB / 0.7092 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001114/1.11, allocations: 36.19 kB / 0.7092 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/1.11, allocations: 13.72 kB / 0.7092 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/1.11, allocations: 10.36 kB / 0.7092 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/1.123, allocations: 8.796 MB / 0.7178 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/1.124, allocations: 3.906 kB / 0.7178 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/1.125, allocations: 302.9 kB / 0.7181 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/1.126, allocations: 0.5049 MB / 0.7186 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/1.126, allocations: 15.08 kB / 0.7186 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006625/1.133, allocations: 6.563 MB / 0.725 GB, free: 98.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002617/1.135, allocations: 2.929 MB / 0.7279 GB, free: 96.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005964/1.141, allocations: 4.906 MB / 0.7327 GB, free: 94.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009785/1.142, allocations: 320.1 kB / 0.733 GB, free: 93.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003883/1.143, allocations: 7.531 kB / 0.733 GB, free: 93.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/1.144, allocations: 54.8 kB / 0.733 GB, free: 93.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/1.144, allocations: 159.3 kB / 0.7332 GB, free: 93.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/1.144, allocations: 63.73 kB / 0.7332 GB, free: 93.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002133/1.147, allocations: 1.435 MB / 0.7346 GB, free: 93.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.147, allocations: 0 / 0.7346 GB, free: 93.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005166/1.152, allocations: 0.7848 MB / 0.7354 GB, free: 93.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 163 * 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%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00681/1.159, allocations: 6.42 MB / 0.7417 GB, free: 89.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005969/1.165, allocations: 4.255 MB / 0.7458 GB, free: 86.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.165, allocations: 6.562 kB / 0.7458 GB, free: 86.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/1.167, allocations: 1.722 MB / 0.7475 GB, free: 85.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/1.169, allocations: 230.6 kB / 0.7477 GB, free: 85.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/1.184, allocations: 7.869 MB / 0.7554 GB, free: 78.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/1.187, allocations: 3.015 MB / 0.7584 GB, free: 76.06 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003737/1.191, allocations: 1.45 MB / 0.7598 GB, free: 75.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002326/1.193, allocations: 1.582 MB / 0.7613 GB, free: 73.69 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/1.193, allocations: 4 kB / 0.7613 GB, free: 73.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08673/1.28, allocations: 61.03 MB / 0.8209 GB, free: 18.34 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001308/1.28, allocations: 163.8 kB / 0.8211 GB, free: 18.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.99, allocations: 0 / 0.8211 GB, free: 18.14 MB / 442.7 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)