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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008637/0.0008637, allocations: 88.16 kB / 16.31 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008803/0.0008804, allocations: 181.3 kB / 17.21 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002736, allocations: 4 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.005974/0.1106, allocations: 5.4 MB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003893/0.1146, allocations: 2.023 MB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006161/0.1152, allocations: 27.88 kB / 358.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007265/0.116, allocations: 362.2 kB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007917/0.1168, allocations: 381.7 kB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009376/0.1177, allocations: 358.6 kB / 359.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.119, allocations: 1.324 MB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005459/0.1196, allocations: 390.9 kB / 361.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004738/0.12, allocations: 438 kB / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005382/0.1206, allocations: 0.5288 MB / 362.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.561e-05/0.1207, allocations: 55.94 kB / 362.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002167/0.1209, allocations: 83.98 kB / 362.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.1211, allocations: 219 kB / 362.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.1213, allocations: 249 kB / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1224, allocations: 1.231 MB / 364.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1224, allocations: 4 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1224, allocations: 0 / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1224, allocations: 0 / 364.4 MB, free: 6.824 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.00214/0.1246, allocations: 1.344 MB / 365.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1246, allocations: 11.97 kB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001704/0.1248, allocations: 152.2 kB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.125, allocations: 146.2 kB / 366 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009461/0.1259, allocations: 0.6997 MB / 366.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.126, allocations: 74 kB / 366.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.1261, allocations: 115.8 kB / 366.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.1276, allocations: 0.9001 MB / 367.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.1276, allocations: 7.906 kB / 367.8 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-05/0.1277, allocations: 40 kB / 367.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.755e-05/0.1277, allocations: 24 kB / 367.9 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.1289, allocations: 0.6441 MB / 368.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.184/0.3128, allocations: 3.232 MB / 371.7 MB, free: 22.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.3142, allocations: 0.6144 MB / 372.3 MB, free: 22.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005167/0.3148, allocations: 299.1 kB / 372.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.942e-05/0.3148, allocations: 12.12 kB / 372.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007537/0.3156, allocations: 352.3 kB / 373 MB, free: 22.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=80): time 2.876e-06/0.3156, allocations: 1.188 kB / 373 MB, free: 22.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.005754/0.3214, allocations: 3.077 MB / 376.1 MB, free: 21.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.3214, allocations: 62.5 kB / 376.1 MB, free: 21.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001153/0.3226, allocations: 0.9237 MB / 377.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.3227, allocations: 47.38 kB / 377.1 MB, free: 21.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003443/0.323, allocations: 0.508 MB / 377.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.3232, allocations: 346.7 kB / 377.9 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.3233, allocations: 20.22 kB / 378 MB, free: 20.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.015e-05/0.3234, allocations: 344 kB / 378.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00052/0.3239, allocations: 266.9 kB / 378.6 MB, free: 19.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.3245, allocations: 431.5 kB / 379 MB, free: 19.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.3252, allocations: 332.9 kB / 379.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3252, allocations: 0.9375 kB / 379.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001726/0.3269, allocations: 1.037 MB / 380.3 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.327, allocations: 6.531 kB / 380.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.327, allocations: 6.156 kB / 380.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004216/0.3274, allocations: 144 kB / 380.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007363/0.3281, allocations: 209.2 kB / 380.7 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00292/0.3311, allocations: 3.611 MB / 384.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.3316, allocations: 30.58 kB / 384.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.46e-05/0.3316, allocations: 36.48 kB / 384.4 MB, free: 15.79 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.0004876/0.3321, allocations: 304.6 kB / 384.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3323, allocations: 104.8 kB / 384.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.3341, allocations: 0.9631 MB / 385.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.3341, allocations: 10.03 kB / 385.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3342, allocations: 4.031 kB / 385.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.3342, allocations: 6.469 kB / 385.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003985/0.3382, allocations: 2.503 MB / 388.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.3382, allocations: 5.375 kB / 388.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007574/0.339, allocations: 183.1 kB / 388.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/0.3393, allocations: 125.1 kB / 388.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.3394, allocations: 28.84 kB / 388.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.3418, allocations: 3.285 MB / 391.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.3419, allocations: 4.25 kB / 391.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/0.3441, allocations: 1.437 MB / 393.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.3444, allocations: 246 kB / 393.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3445, allocations: 32.48 kB / 393.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.3449, allocations: 22.05 kB / 393.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.345, allocations: 78.12 kB / 393.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.135e-05/0.3451, allocations: 38.53 kB / 393.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007878/0.3459, allocations: 0.6543 MB / 394.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3459, allocations: 0 / 394.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009773/0.3469, allocations: 244.1 kB / 394.6 MB, free: 9.297 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.003086/0.35, allocations: 2.319 MB / 396.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.3517, allocations: 1.039 MB / 398 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3517, allocations: 1.312 kB / 398 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009034/0.3526, allocations: 0.6967 MB / 398.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009943/0.3536, allocations: 160.6 kB / 398.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00861/0.3622, allocations: 7.006 MB / 405.8 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006048/0.3629, allocations: 1.106 MB / 407 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004794/0.3634, allocations: 115.6 kB / 407.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/0.3639, allocations: 447.3 kB / 407.5 MB, free: 15 MB / 318.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3639, allocations: 0 / 407.5 MB, free: 15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.4028, allocations: 19.75 MB / 427.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.4031, allocations: 239.7 kB / 427.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.381/2.784, allocations: 0 / 427.5 MB, free: 11.2 MB / 334.1 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