Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008513/0.0008558, allocations: 100.9 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008668/0.0008669, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.000373, allocations: 11.98 kB / 306.8 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.144, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.005932/0.15, allocations: 5.429 MB / 363.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004181/0.1543, allocations: 2.175 MB / 365.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007814/0.1551, allocations: 27.88 kB / 365.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007869/0.1559, allocations: 358.2 kB / 366.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.157, allocations: 421.6 kB / 366.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1582, allocations: 355.4 kB / 367 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.1597, allocations: 1.332 MB / 368.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006614/0.1603, allocations: 390.9 kB / 368.8 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007451/0.1611, allocations: 450 kB / 369.2 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005827/0.1617, allocations: 0.521 MB / 369.7 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.614e-05/0.1618, allocations: 52 kB / 369.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.1621, allocations: 99.97 kB / 369.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.1623, allocations: 207 kB / 370.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.1625, allocations: 253 kB / 370.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1637, allocations: 1.247 MB / 371.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.1637, allocations: 3.938 kB / 371.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1637, allocations: 7.938 kB / 371.6 MB, free: 0.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.1637, allocations: 0 / 371.6 MB, free: 0.668 MB / 302.1 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.2128/0.3765, allocations: 1.342 MB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.3766, allocations: 10.86 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003697/0.377, allocations: 150.9 kB / 373.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.3775, allocations: 151.1 kB / 373.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.3788, allocations: 0.7218 MB / 373.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.473e-05/0.3789, allocations: 72.81 kB / 374 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.3791, allocations: 109.6 kB / 374.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.381, allocations: 0.9042 MB / 375 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.735e-05/0.3811, allocations: 11.08 kB / 375 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.52e-05/0.3812, allocations: 43.08 kB / 375.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.3812, allocations: 24.09 kB / 375.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.3827, allocations: 0.6392 MB / 375.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005371/0.3881, allocations: 3.234 MB / 379 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.3896, allocations: 0.6229 MB / 379.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005871/0.3902, allocations: 295.2 kB / 379.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.421e-05/0.3903, allocations: 18.05 kB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007647/0.3911, allocations: 345.8 kB / 380.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 3.467e-06/0.3911, allocations: 1.75 kB / 380.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.006046/0.3972, allocations: 3.07 MB / 383.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.3972, allocations: 62.23 kB / 383.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.3986, allocations: 0.9423 MB / 384.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.3986, allocations: 41.95 kB / 384.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/0.399, allocations: 0.5142 MB / 384.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/0.3992, allocations: 341.6 kB / 385.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.3993, allocations: 24.38 kB / 385.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.3993, allocations: 346.3 kB / 385.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.3999, allocations: 271.7 kB / 385.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006156/0.4005, allocations: 431.7 kB / 386.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.4011, allocations: 335.3 kB / 386.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4011, allocations: 1.406 kB / 386.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001913/0.403, allocations: 1.031 MB / 387.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.4031, allocations: 6.125 kB / 387.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4031, allocations: 3.969 kB / 387.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004651/0.4035, allocations: 150.9 kB / 387.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007982/0.4044, allocations: 209.3 kB / 388 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003022/0.4074, allocations: 3.613 MB / 391.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.408, allocations: 35.48 kB / 391.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-05/0.4081, allocations: 38.97 kB / 391.7 MB, free: 8.469 MB / 302.1 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.0006159/0.4088, allocations: 307.2 kB / 392 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.4089, allocations: 109.8 kB / 392.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.4109, allocations: 0.945 MB / 393 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.411, allocations: 12.16 kB / 393 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.411, allocations: 7.266 kB / 393 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.411, allocations: 10.34 kB / 393 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.4147, allocations: 2.514 MB / 395.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.4147, allocations: 2.812 kB / 395.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/0.4154, allocations: 187.8 kB / 395.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000333/0.4158, allocations: 119.5 kB / 395.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.418e-05/0.4158, allocations: 25.28 kB / 395.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002348/0.4182, allocations: 3.29 MB / 399.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.4182, allocations: 12.28 kB / 399.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.4204, allocations: 1.431 MB / 400.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.4207, allocations: 243.1 kB / 400.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.4208, allocations: 27.77 kB / 400.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003714/0.4212, allocations: 23.91 kB / 400.9 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.4214, allocations: 80.45 kB / 401 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.4214, allocations: 27.75 kB / 401 MB, free: 1.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006396/0.4221, allocations: 0.6658 MB / 401.7 MB, free: 1.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4221, allocations: 0 / 401.7 MB, free: 1.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009489/0.423, allocations: 244.4 kB / 401.9 MB, free: 1.281 MB / 302.1 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 (88): * Single equations (assignments): 84 * 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.002999/0.426, allocations: 2.311 MB / 404.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.4279, allocations: 1.039 MB / 405.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.428, allocations: 0 / 405.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.429, allocations: 0.6949 MB / 406 MB, free: 13.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.43, allocations: 172.6 kB / 406.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.4409, allocations: 7.042 MB / 413.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007711/0.4417, allocations: 1.1 MB / 414.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004832/0.4422, allocations: 119.6 kB / 414.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005947/0.4428, allocations: 455.3 kB / 414.8 MB, free: 4.363 MB / 318.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4429, allocations: 0 / 414.8 MB, free: 4.363 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03685/0.4797, allocations: 19.81 MB / 434.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.48, allocations: 249.8 kB / 434.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/2.849, allocations: 3.938 kB / 434.9 MB, free: 0.5 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Vehicle_res.mat does not exist to compare? outputFormat=mat