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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009943/0.0009944, allocations: 195.9 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008776/0.0008777, allocations: 100.3 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1024/0.1034, allocations: 56.89 MB / 343.2 MB, free: 8.594 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.2008, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2298/0.4307, allocations: 86.38 MB / 481.1 MB, free: 6.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.4309, allocations: 81.39 kB / 481.2 MB, free: 6.809 MB / 346.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.05982/0.4907, allocations: 23.57 MB / 0.4929 GB, free: 3.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.4908, allocations: 8 kB / 0.4929 GB, free: 3.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005363/0.4913, allocations: 154.7 kB / 0.4931 GB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.4927, allocations: 0.7355 MB / 0.4938 GB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.4928, allocations: 32 kB / 0.4938 GB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.493, allocations: 71.27 kB / 0.4939 GB, free: 2.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001115/0.4941, allocations: 0.5555 MB / 0.4944 GB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.4955, allocations: 0.7526 MB / 0.4952 GB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.848e-05/0.4956, allocations: 7.906 kB / 0.4952 GB, free: 1.672 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-05/0.4956, allocations: 3.984 kB / 0.4952 GB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.4957, allocations: 24 kB / 0.4952 GB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005046/0.5007, allocations: 3.11 MB / 0.4982 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009342/0.5017, allocations: 429.9 kB / 0.4986 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004575/0.5021, allocations: 273.4 kB / 0.4989 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-05/0.5022, allocations: 20.58 kB / 0.4989 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005154/0.5027, allocations: 299.1 kB / 0.4992 GB, free: 14.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 2.965e-06/0.5028, allocations: 4 kB / 0.4992 GB, free: 14.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.004844/0.5076, allocations: 2.494 MB / 0.5016 GB, free: 11.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.5077, allocations: 60.41 kB / 0.5017 GB, free: 11.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009493/0.5086, allocations: 0.7192 MB / 0.5024 GB, free: 10.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.713e-05/0.5087, allocations: 25.7 kB / 0.5024 GB, free: 10.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.509, allocations: 387.8 kB / 0.5028 GB, free: 10.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.5092, allocations: 335 kB / 0.5031 GB, free: 9.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/0.5092, allocations: 0 / 0.5031 GB, free: 9.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5094, allocations: 341.9 kB / 0.5034 GB, free: 9.602 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.5098, allocations: 234 kB / 0.5037 GB, free: 9.375 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005177/0.5103, allocations: 387.3 kB / 0.504 GB, free: 8.945 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005139/0.5109, allocations: 312.8 kB / 0.5043 GB, free: 8.641 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5109, allocations: 0 / 0.5043 GB, free: 8.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001579/0.5125, allocations: 0.897 MB / 0.5052 GB, free: 7.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.5125, allocations: 8 kB / 0.5052 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.5125, allocations: 4 kB / 0.5052 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004564/0.513, allocations: 138.8 kB / 0.5054 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000862/0.5138, allocations: 212 kB / 0.5056 GB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/0.5171, allocations: 3.342 MB / 0.5088 GB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004653/0.5176, allocations: 24.11 kB / 0.5088 GB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.5177, allocations: 33.28 kB / 0.5089 GB, free: 3.746 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.0001592/0.5179, allocations: 133.7 kB / 0.509 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.518, allocations: 94.78 kB / 0.5091 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.5196, allocations: 0.8476 MB / 0.5099 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.5196, allocations: 8 kB / 0.5099 GB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.5196, allocations: 4 kB / 0.5099 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.5196, allocations: 11.92 kB / 0.5099 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00374/0.5234, allocations: 2.315 MB / 0.5122 GB, free: 212 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5234, allocations: 7.984 kB / 0.5122 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000865/0.5243, allocations: 183.8 kB / 0.5124 GB, free: 20 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/0.5247, allocations: 127.4 kB / 0.5125 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.584e-05/0.5248, allocations: 8 kB / 0.5125 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.5277, allocations: 3.13 MB / 0.5156 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.5277, allocations: 7.938 kB / 0.5156 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002178/0.5299, allocations: 1.459 MB / 0.517 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002774/0.5327, allocations: 2.209 MB / 0.5192 GB, free: 8.578 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/0.5331, allocations: 251.8 kB / 0.5194 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.5332, allocations: 8 kB / 0.5194 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.5337, allocations: 15.89 kB / 0.5194 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.5338, allocations: 60.64 kB / 0.5195 GB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-05/0.5339, allocations: 35.98 kB / 0.5195 GB, free: 8.195 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000722/0.5346, allocations: 0.5577 MB / 0.5201 GB, free: 7.645 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001552/0.5362, allocations: 236.2 kB / 0.5203 GB, free: 7.414 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.0006886/0.5369, allocations: 336.9 kB / 0.5206 GB, free: 7.176 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.5384, allocations: 0.9058 MB / 0.5215 GB, free: 6.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5384, allocations: 4 kB / 0.5215 GB, free: 6.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009064/0.5393, allocations: 0.6132 MB / 0.5221 GB, free: 5.617 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007581/0.5401, allocations: 125.8 kB / 0.5222 GB, free: 5.492 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.5436, allocations: 2.126 MB / 0.5243 GB, free: 3.293 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009604/0.5446, allocations: 1.228 MB / 0.5255 GB, free: 2.035 MB / 394.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5446, allocations: 0 / 0.5255 GB, free: 2.035 MB / 394.7 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