Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.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) 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(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle",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.001625/0.001625, allocations: 179.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.2 MB / 240.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 96 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002951, allocations: 7.938 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2785, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1025/0.381, allocations: 85.96 MB / 487.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.3813, allocations: 84.56 kB / 487.6 MB, free: 10.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05696/0.4383, allocations: 22.14 MB / 0.4978 GB, free: 4.215 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4384, allocations: 4 kB / 0.4978 GB, free: 4.211 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.607e-05/0.4384, allocations: 31.98 kB / 0.4978 GB, free: 4.18 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002344/0.4408, allocations: 1.357 MB / 0.4992 GB, free: 2.766 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.4408, allocations: 8.031 kB / 0.4992 GB, free: 2.758 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.441, allocations: 148.2 kB / 0.4993 GB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.4412, allocations: 143.2 kB / 0.4995 GB, free: 2.465 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.4423, allocations: 0.7463 MB / 0.5002 GB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.505e-05/0.4424, allocations: 74 kB / 0.5002 GB, free: 1.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.4426, allocations: 99.91 kB / 0.5003 GB, free: 1.508 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.444, allocations: 0.9078 MB / 0.5012 GB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/0.4441, allocations: 11.91 kB / 0.5012 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.4442, allocations: 44 kB / 0.5013 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.4442, allocations: 24 kB / 0.5013 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2052/0.6495, allocations: 0.641 MB / 0.5019 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006268/0.6558, allocations: 3.298 MB / 0.5052 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.6573, allocations: 0.6304 MB / 0.5058 GB, free: 88.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.947e-05/0.6574, allocations: 12.59 kB / 0.5058 GB, free: 88.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007756/0.6582, allocations: 351.4 kB / 0.5061 GB, free: 88.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 4.178e-06/0.6582, allocations: 0.5312 kB / 0.5061 GB, free: 88.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.005888/0.6641, allocations: 3.077 MB / 0.5091 GB, free: 87.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.6642, allocations: 66.34 kB / 0.5092 GB, free: 87.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.6653, allocations: 0.8283 MB / 0.51 GB, free: 87.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.6654, allocations: 43.64 kB / 0.51 GB, free: 87.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.6657, allocations: 0.5201 MB / 0.5105 GB, free: 87.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.666, allocations: 345.3 kB / 0.5109 GB, free: 87.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.793e-05/0.666, allocations: 19.97 kB / 0.5109 GB, free: 87.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.316e-05/0.6661, allocations: 345.8 kB / 0.5112 GB, free: 86.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004694/0.6666, allocations: 272.5 kB / 0.5115 GB, free: 86.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005256/0.6671, allocations: 430.7 kB / 0.5119 GB, free: 86.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/0.6677, allocations: 341.9 kB / 0.5122 GB, free: 86.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.6677, allocations: 0 / 0.5122 GB, free: 86.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001611/0.6693, allocations: 1.04 MB / 0.5132 GB, free: 86.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.6693, allocations: 10.16 kB / 0.5132 GB, free: 86.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.6693, allocations: 7.156 kB / 0.5133 GB, free: 86.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.6698, allocations: 144.9 kB / 0.5134 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007418/0.6705, allocations: 208.4 kB / 0.5136 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/0.6733, allocations: 3.646 MB / 0.5171 GB, free: 83.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006311/0.6739, allocations: 35.48 kB / 0.5172 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.674, allocations: 38.34 kB / 0.5172 GB, free: 83.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEvent,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 106 * Array equations: 0 * 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 {(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005584/0.6745, allocations: 304.3 kB / 0.5175 GB, free: 82.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.6747, allocations: 108.4 kB / 0.5176 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.6763, allocations: 0.9771 MB / 0.5186 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.6763, allocations: 13.66 kB / 0.5186 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6764, allocations: 2.938 kB / 0.5186 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.6764, allocations: 10.31 kB / 0.5186 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.68, allocations: 2.575 MB / 0.5211 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.68, allocations: 3.969 kB / 0.5211 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008278/0.6808, allocations: 191 kB / 0.5213 GB, free: 80.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003806/0.6812, allocations: 124.2 kB / 0.5214 GB, free: 80.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-05/0.6813, allocations: 30.88 kB / 0.5214 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.6836, allocations: 3.324 MB / 0.5247 GB, free: 77.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6836, allocations: 7.5 kB / 0.5247 GB, free: 77.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.686, allocations: 1.609 MB / 0.5263 GB, free: 76.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/0.6864, allocations: 261.8 kB / 0.5265 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.6866, allocations: 26.09 kB / 0.5265 GB, free: 76.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.687, allocations: 32.78 kB / 0.5266 GB, free: 76.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.6871, allocations: 68.45 kB / 0.5266 GB, free: 76.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.6872, allocations: 34.47 kB / 0.5267 GB, free: 76.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007429/0.6879, allocations: 0.6573 MB / 0.5273 GB, free: 76.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6879, allocations: 0 / 0.5273 GB, free: 76.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009537/0.6889, allocations: 270.4 kB / 0.5276 GB, free: 76.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 10 (vehicle.mass.s,vehicle.mass.v,vehicle.windSpeed.s,vehicle.windSpeed.v,vehicle1.mass.s,vehicle1.mass.v,vehicle1.windSpeed.s,vehicle1.windSpeed.v,trailer.windSpeed.s,trailer.windSpeed.v) * Number of discrete variables: 3 ($whenCondition1,timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Number of discrete states: 2 (timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 3,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003055/0.692, allocations: 3.336 MB / 0.5308 GB, free: 73.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.6937, allocations: 1.043 MB / 0.5318 GB, free: 73.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.6937, allocations: 0 / 0.5318 GB, free: 73.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008561/0.6946, allocations: 0.7081 MB / 0.5325 GB, free: 72.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/0.6954, allocations: 154.1 kB / 0.5327 GB, free: 72.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008347/0.7038, allocations: 9.411 MB / 0.5419 GB, free: 63.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.7043, allocations: 1.128 MB / 0.543 GB, free: 62.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004317/0.7047, allocations: 128.6 kB / 0.5431 GB, free: 62.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000449/0.7052, allocations: 448 kB / 0.5435 GB, free: 62.29 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.7052, allocations: 8 kB / 0.5435 GB, free: 62.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03381/0.739, allocations: 20.21 MB / 0.5633 GB, free: 44.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.7392, allocations: 251.1 kB / 0.5635 GB, free: 44.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.675/3.415, allocations: 0 / 0.5635 GB, free: 44.52 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat does not exist to compare? outputFormat=mat