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.001743/0.001743, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.538/1.538, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.001034/0.001034, allocations: 94.59 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.273e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1202, allocations: 50.43 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.428/0.5483, allocations: 85.22 MB / 472.8 MB, free: 9.488 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000346/0.5487, allocations: 81.89 kB / 472.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08162/0.6304, allocations: 21.93 MB / 494.8 MB, free: 3.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.6304, allocations: 0 / 494.8 MB, free: 3.422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001103/0.6306, allocations: 28 kB / 494.8 MB, free: 3.395 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002779/0.6334, allocations: 1.213 MB / 496 MB, free: 2.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.6334, allocations: 8.031 kB / 496 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.6338, allocations: 146.2 kB / 496.2 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.6354, allocations: 0.7279 MB / 496.9 MB, free: 1.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-05/0.6355, allocations: 32 kB / 496.9 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.6357, allocations: 67.98 kB / 497 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001556/0.6373, allocations: 0.5546 MB / 497.6 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.6391, allocations: 0.7479 MB / 498.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.695e-05/0.6392, allocations: 11.89 kB / 498.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.48e-05/0.6393, allocations: 4 kB / 498.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.6394, allocations: 24 kB / 498.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005319/0.6447, allocations: 3.112 MB / 0.4897 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.6458, allocations: 0.5512 MB / 0.4902 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/0.6462, allocations: 267.1 kB / 0.4905 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-05/0.6462, allocations: 16.77 kB / 0.4905 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005319/0.6468, allocations: 312.5 kB / 0.4908 GB, free: 11.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.216e-06/0.6468, allocations: 0 / 0.4908 GB, free: 11.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.004887/0.6517, allocations: 2.547 MB / 0.4933 GB, free: 8.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.6517, allocations: 64.72 kB / 0.4934 GB, free: 8.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.6528, allocations: 0.7035 MB / 0.494 GB, free: 7.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.6528, allocations: 25.7 kB / 0.4941 GB, free: 7.926 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004657/0.6533, allocations: 0.5233 MB / 0.4946 GB, free: 7.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.6536, allocations: 338.9 kB / 0.4949 GB, free: 7.059 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.6536, allocations: 0 / 0.4949 GB, free: 7.059 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.6538, allocations: 345.9 kB / 0.4952 GB, free: 6.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.6542, allocations: 238.6 kB / 0.4955 GB, free: 6.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.6548, allocations: 385.8 kB / 0.4958 GB, free: 6.051 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.6553, allocations: 308.3 kB / 0.4961 GB, free: 5.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.6553, allocations: 0 / 0.4961 GB, free: 5.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001512/0.6568, allocations: 0.8985 MB / 0.497 GB, free: 4.836 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.6568, allocations: 9.562 kB / 0.497 GB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.6568, allocations: 4 kB / 0.497 GB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004215/0.6573, allocations: 153 kB / 0.4972 GB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007839/0.6581, allocations: 215.8 kB / 0.4974 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003361/0.6614, allocations: 3.438 MB / 0.5007 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.6619, allocations: 15.98 kB / 0.5007 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.958e-05/0.662, allocations: 36 kB / 0.5008 GB, free: 0.7305 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 () * 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.0001745/0.6622, allocations: 128.8 kB / 0.5009 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001303/0.6635, allocations: 0.7981 MB / 0.5017 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.6636, allocations: 98.78 kB / 0.5018 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.6652, allocations: 0.8609 MB / 0.5026 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.6652, allocations: 12 kB / 0.5026 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6652, allocations: 0 / 0.5026 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.6652, allocations: 7.984 kB / 0.5026 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.6688, allocations: 2.326 MB / 0.5049 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.6689, allocations: 8.094 kB / 0.5049 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/0.6696, allocations: 179.8 kB / 0.5051 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003626/0.67, allocations: 121.6 kB / 0.5052 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.6701, allocations: 8 kB / 0.5052 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.673, allocations: 3.176 MB / 0.5083 GB, free: 8.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.673, allocations: 7.984 kB / 0.5083 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.6752, allocations: 1.482 MB / 0.5098 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004586/0.6757, allocations: 251.8 kB / 0.51 GB, free: 6.746 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.6758, allocations: 12 kB / 0.51 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.6762, allocations: 11.98 kB / 0.51 GB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.6763, allocations: 72.67 kB / 0.5101 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-05/0.6764, allocations: 39.98 kB / 0.5101 GB, free: 6.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007464/0.6772, allocations: 0.5499 MB / 0.5107 GB, free: 6.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6772, allocations: 0 / 0.5107 GB, free: 6.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001001/0.6782, allocations: 232.1 kB / 0.5109 GB, free: 5.844 MB / 394.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) * 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.003422/0.6816, allocations: 3.109 MB / 0.5139 GB, free: 2.707 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.6833, allocations: 0.9382 MB / 0.5148 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6833, allocations: 4.062 kB / 0.5148 GB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009339/0.6842, allocations: 0.6426 MB / 0.5155 GB, free: 1.082 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009084/0.6852, allocations: 130 kB / 0.5156 GB, free: 0.957 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.6895, allocations: 2.292 MB / 0.5178 GB, free: 14.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000779/0.6903, allocations: 1.128 MB / 0.5189 GB, free: 13.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004725/0.6907, allocations: 119 kB / 0.519 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/0.6913, allocations: 443.3 kB / 0.5195 GB, free: 12.87 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6914, allocations: 0 / 0.5195 GB, free: 12.87 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05768/0.749, allocations: 18.45 MB / 0.5375 GB, free: 10.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003548/0.7495, allocations: 162.8 kB / 0.5376 GB, free: 10.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.716, allocations: 0 / 0.5376 GB, free: 10.3 MB / 426.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