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.001545/0.001545, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.602/1.602, allocations: 221.4 MB / 235.5 MB, free: 2.973 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.0009301/0.0009302, allocations: 97.98 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.24e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1269, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4721/0.5991, allocations: 85.89 MB / 480.2 MB, free: 1.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5994, allocations: 79.95 kB / 480.3 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05966/0.6591, allocations: 22.12 MB / 0.4907 GB, free: 11.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.6592, allocations: 4 kB / 0.4907 GB, free: 11.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.219e-05/0.6593, allocations: 28 kB / 0.4907 GB, free: 11.3 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.002151/0.6614, allocations: 1.206 MB / 0.4919 GB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.6615, allocations: 8.031 kB / 0.4919 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002019/0.6617, allocations: 156.2 kB / 0.492 GB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000229/0.6619, allocations: 143.2 kB / 0.4922 GB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.6632, allocations: 0.7308 MB / 0.4929 GB, free: 8.961 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.395e-05/0.6633, allocations: 74 kB / 0.4929 GB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.6635, allocations: 111.9 kB / 0.493 GB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.6651, allocations: 0.8768 MB / 0.4939 GB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.043e-05/0.6651, allocations: 7.906 kB / 0.4939 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.104e-05/0.6652, allocations: 44 kB / 0.494 GB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.6652, allocations: 24 kB / 0.494 GB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.6664, allocations: 0.6131 MB / 0.4946 GB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.6716, allocations: 3.295 MB / 0.4978 GB, free: 3.766 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.6728, allocations: 0.5866 MB / 0.4984 GB, free: 3.164 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.6733, allocations: 291.1 kB / 0.4986 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.323e-05/0.6734, allocations: 20.75 kB / 0.4987 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006297/0.674, allocations: 326.2 kB / 0.499 GB, free: 2.527 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.296e-06/0.674, allocations: 0 / 0.499 GB, free: 2.527 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.005347/0.6794, allocations: 2.777 MB / 0.5017 GB, free: 15.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.6795, allocations: 68.39 kB / 0.5018 GB, free: 15.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.6808, allocations: 0.8134 MB / 0.5025 GB, free: 14.78 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.245e-05/0.6809, allocations: 41.7 kB / 0.5026 GB, free: 14.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004926/0.6814, allocations: 0.5196 MB / 0.5031 GB, free: 14.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.6817, allocations: 343 kB / 0.5034 GB, free: 13.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.6817, allocations: 20 kB / 0.5034 GB, free: 13.85 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6819, allocations: 345.9 kB / 0.5038 GB, free: 13.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.6824, allocations: 258 kB / 0.504 GB, free: 13.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005723/0.683, allocations: 413.1 kB / 0.5044 GB, free: 12.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005641/0.6835, allocations: 334 kB / 0.5047 GB, free: 12.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.6836, allocations: 0 / 0.5047 GB, free: 12.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001741/0.6853, allocations: 0.9922 MB / 0.5057 GB, free: 11.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.6853, allocations: 8 kB / 0.5057 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.6854, allocations: 4 kB / 0.5057 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004919/0.6859, allocations: 150 kB / 0.5059 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008139/0.6867, allocations: 211.7 kB / 0.5061 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003877/0.6906, allocations: 3.601 MB / 0.5096 GB, free: 7.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007637/0.6914, allocations: 36.05 kB / 0.5096 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.785e-05/0.6914, allocations: 36 kB / 0.5096 GB, free: 7.156 MB / 394.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.0002163/0.6917, allocations: 152.7 kB / 0.5098 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.6918, allocations: 110.6 kB / 0.5099 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.6937, allocations: 0.9477 MB / 0.5108 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.6937, allocations: 11.95 kB / 0.5108 GB, free: 5.922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.6937, allocations: 4 kB / 0.5108 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.6937, allocations: 3.984 kB / 0.5108 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004177/0.6979, allocations: 2.548 MB / 0.5133 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.6979, allocations: 7.938 kB / 0.5133 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007952/0.6987, allocations: 187.7 kB / 0.5135 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004286/0.6992, allocations: 122 kB / 0.5136 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/0.6993, allocations: 27.98 kB / 0.5137 GB, free: 2.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/0.7026, allocations: 3.28 MB / 0.5169 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.7026, allocations: 4.141 kB / 0.5169 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.7051, allocations: 1.549 MB / 0.5184 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005501/0.7056, allocations: 263.7 kB / 0.5186 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.7058, allocations: 24 kB / 0.5186 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.7062, allocations: 35.98 kB / 0.5187 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.7064, allocations: 72.67 kB / 0.5187 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-05/0.7065, allocations: 31.98 kB / 0.5188 GB, free: 13.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009749/0.7074, allocations: 0.6514 MB / 0.5194 GB, free: 12.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7075, allocations: 0 / 0.5194 GB, free: 12.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001031/0.7085, allocations: 268.1 kB / 0.5197 GB, free: 12.32 MB / 410.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.00384/0.7123, allocations: 3.223 MB / 0.5228 GB, free: 9.098 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.7144, allocations: 1.01 MB / 0.5238 GB, free: 8.062 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7144, allocations: 0 / 0.5238 GB, free: 8.062 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.7156, allocations: 0.6785 MB / 0.5245 GB, free: 7.359 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.7167, allocations: 154.4 kB / 0.5246 GB, free: 7.211 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.7213, allocations: 2.379 MB / 0.5269 GB, free: 4.754 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008557/0.7222, allocations: 1.135 MB / 0.528 GB, free: 3.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005019/0.7227, allocations: 127.4 kB / 0.5282 GB, free: 3.461 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006325/0.7233, allocations: 447.3 kB / 0.5286 GB, free: 3.023 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7234, allocations: 0 / 0.5286 GB, free: 3.023 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3406/1.064, allocations: 20.13 MB / 0.5483 GB, free: 118.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/1.064, allocations: 209.5 kB / 0.5485 GB, free: 118.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.94/4.005, allocations: 0 / 0.5485 GB, free: 118.5 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