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"}) [: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 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 184 kB / 8.138 MB, free: 2.223 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.053/1.053, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009342/0.0009342, allocations: 96.14 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0909/0.09187, allocations: 55.81 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.2625, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08055/0.3431, allocations: 85.16 MB / 472.2 MB, free: 1.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.3434, allocations: 71.97 kB / 472.2 MB, free: 1.539 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.05623/0.3996, allocations: 22.86 MB / 495.1 MB, free: 10.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3997, allocations: 11.98 kB / 495.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000318/0.4, allocations: 142.2 kB / 495.2 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.4013, allocations: 0.7347 MB / 496 MB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.01e-05/0.4013, allocations: 28 kB / 496 MB, free: 9.684 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.4015, allocations: 63.91 kB / 496.1 MB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/0.4026, allocations: 0.5585 MB / 496.6 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.4039, allocations: 0.7518 MB / 497.4 MB, free: 8.297 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/0.4039, allocations: 11.84 kB / 497.4 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.404, allocations: 0 / 497.4 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.404, allocations: 24 kB / 497.4 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004626/0.4087, allocations: 3.108 MB / 0.4888 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008664/0.4096, allocations: 430.9 kB / 0.4892 GB, free: 4.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003937/0.41, allocations: 266.8 kB / 0.4895 GB, free: 4.344 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.214e-05/0.4101, allocations: 12.64 kB / 0.4895 GB, free: 4.332 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004873/0.4105, allocations: 311 kB / 0.4898 GB, free: 4.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.547e-06/0.4106, allocations: 4 kB / 0.4898 GB, free: 4.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.004523/0.4151, allocations: 2.5 MB / 0.4922 GB, free: 1.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.4152, allocations: 60.41 kB / 0.4923 GB, free: 1.359 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009801/0.4161, allocations: 0.7035 MB / 0.493 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.4162, allocations: 29.7 kB / 0.493 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.4165, allocations: 387.8 kB / 0.4934 GB, free: 232 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.09583/0.5123, allocations: 327.9 kB / 0.4937 GB, free: 127.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.5124, allocations: 0 / 0.4937 GB, free: 127.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.5124, allocations: 351.2 kB / 0.494 GB, free: 126.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/0.5128, allocations: 235.3 kB / 0.4942 GB, free: 126.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000373/0.5132, allocations: 383.6 kB / 0.4946 GB, free: 126.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.5136, allocations: 297.2 kB / 0.4949 GB, free: 126.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5136, allocations: 0 / 0.4949 GB, free: 126.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001357/0.515, allocations: 0.9044 MB / 0.4958 GB, free: 126.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.515, allocations: 6.062 kB / 0.4958 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.515, allocations: 3.562 kB / 0.4958 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003815/0.5154, allocations: 141.8 kB / 0.4959 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007432/0.5161, allocations: 215.6 kB / 0.4961 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.5185, allocations: 3.331 MB / 0.4994 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005219/0.519, allocations: 16.06 kB / 0.4994 GB, free: 124.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.5191, allocations: 44.47 kB / 0.4994 GB, free: 124.1 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.0001326/0.5192, allocations: 120 kB / 0.4995 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.5193, allocations: 103.8 kB / 0.4996 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.5207, allocations: 0.8493 MB / 0.5005 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.5207, allocations: 10.17 kB / 0.5005 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5207, allocations: 7.344 kB / 0.5005 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.5207, allocations: 3.75 kB / 0.5005 GB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.5236, allocations: 2.318 MB / 0.5027 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.5236, allocations: 5.594 kB / 0.5027 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007648/0.5244, allocations: 191.1 kB / 0.5029 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.5247, allocations: 117.8 kB / 0.503 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.851e-05/0.5248, allocations: 12.98 kB / 0.5031 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.5267, allocations: 3.122 MB / 0.5061 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5267, allocations: 6.125 kB / 0.5061 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001566/0.5283, allocations: 1.464 MB / 0.5075 GB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001976/0.5303, allocations: 2.205 MB / 0.5097 GB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.5306, allocations: 253.9 kB / 0.5099 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.5307, allocations: 19.5 kB / 0.51 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.5311, allocations: 6.125 kB / 0.51 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.634e-05/0.5313, allocations: 63.7 kB / 0.51 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.5313, allocations: 33.41 kB / 0.5101 GB, free: 119.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005779/0.5319, allocations: 0.5482 MB / 0.5106 GB, free: 119.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001283/0.5332, allocations: 239.9 kB / 0.5108 GB, free: 119.2 MB / 378.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.0005857/0.5338, allocations: 335.3 kB / 0.5111 GB, free: 119.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.5349, allocations: 0.9016 MB / 0.512 GB, free: 118.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5349, allocations: 1.781 kB / 0.512 GB, free: 118.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006809/0.5356, allocations: 0.6197 MB / 0.5126 GB, free: 118.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.5363, allocations: 127.7 kB / 0.5127 GB, free: 118.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.5392, allocations: 2.112 MB / 0.5148 GB, free: 117.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006635/0.5399, allocations: 1.223 MB / 0.516 GB, free: 117.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5399, allocations: 0 / 0.516 GB, free: 117.2 MB / 378.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)