Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_4_1_0-beta_om_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.001287/0.001287, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3032, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Vehicle): time 0.008401/0.3117, allocations: 6.237 MB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005124/0.3168, allocations: 2.287 MB / 417.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009483/0.3178, allocations: 27.88 kB / 417.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.3189, allocations: 425.4 kB / 418 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001488/0.3204, allocations: 492.7 kB / 418.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3216, allocations: 495.1 kB / 419 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.3236, allocations: 1.515 MB / 420.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008476/0.3245, allocations: 0.5357 MB / 421 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009039/0.3254, allocations: 0.5564 MB / 421.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009301/0.3264, allocations: 0.6456 MB / 422.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002348/0.3266, allocations: 128 kB / 422.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004459/0.3271, allocations: 188 kB / 422.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003385/0.3274, allocations: 302.9 kB / 422.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008326/0.3283, allocations: 0.6528 MB / 423.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.3305, allocations: 1.656 MB / 425.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3305, allocations: 0 / 425.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3306, allocations: 0 / 425.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.309e-05/0.3306, allocations: 0 / 425.2 MB, free: 1.172 MB / 334.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.003063/0.3337, allocations: 1.608 MB / 426.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.942e-05/0.3337, allocations: 12.03 kB / 426.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/0.3339, allocations: 148.4 kB / 426.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004569/0.3344, allocations: 156 kB / 427.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.3359, allocations: 0.779 MB / 427.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.336, allocations: 81.92 kB / 427.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.3361, allocations: 107.9 kB / 428 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.3378, allocations: 0.9078 MB / 429 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.557e-05/0.3378, allocations: 11.95 kB / 429 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.329e-05/0.3379, allocations: 40 kB / 429 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.338, allocations: 24 kB / 429 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.3393, allocations: 0.6402 MB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005464/0.3448, allocations: 3.21 MB / 432.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.3463, allocations: 0.6117 MB / 433.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005548/0.3469, allocations: 302.7 kB / 433.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-05/0.3469, allocations: 12.66 kB / 433.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007377/0.3477, allocations: 348.3 kB / 434.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.935e-06/0.3477, allocations: 0 / 434.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.00659/0.3543, allocations: 3.091 MB / 437.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.3544, allocations: 60.41 kB / 437.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/0.3558, allocations: 0.9508 MB / 438.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.708e-05/0.3559, allocations: 41.7 kB / 438.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005358/0.3564, allocations: 0.5244 MB / 438.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/0.3567, allocations: 356.9 kB / 439.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.357, allocations: 162.6 kB / 439.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.3572, allocations: 345.9 kB / 439.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.3578, allocations: 269.9 kB / 439.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/0.3585, allocations: 433.4 kB / 440.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3598, allocations: 0.7445 MB / 441.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3598, allocations: 0 / 441.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002142/0.3619, allocations: 1.037 MB / 442.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.362, allocations: 10.5 kB / 442.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.362, allocations: 4.406 kB / 442.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005229/0.3625, allocations: 145.6 kB / 442.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.3633, allocations: 203.7 kB / 442.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004302/0.3676, allocations: 3.996 MB / 446.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007698/0.3685, allocations: 28 kB / 446.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/0.3686, allocations: 39.98 kB / 446.5 MB, free: 11 MB / 366.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 ($PRE.timeTableTorqueInclination.nextTimeEvent,$whenCondition1,timeTableTorqueInclination.nextTimeEventScaled,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006672/0.3692, allocations: 298.4 kB / 446.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.3694, allocations: 111.3 kB / 446.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.3714, allocations: 0.9596 MB / 447.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.3715, allocations: 8 kB / 447.9 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3715, allocations: 4 kB / 447.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.3715, allocations: 7.984 kB / 447.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004304/0.3758, allocations: 2.482 MB / 450.4 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.3758, allocations: 4 kB / 450.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.3766, allocations: 179.8 kB / 450.6 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004207/0.377, allocations: 129.9 kB / 450.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.3771, allocations: 31.98 kB / 450.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.3808, allocations: 3.605 MB / 454.3 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.3809, allocations: 4 kB / 454.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.3837, allocations: 1.431 MB / 455.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005082/0.3842, allocations: 252.2 kB / 456 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.3844, allocations: 20.14 kB / 456 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.3848, allocations: 35.98 kB / 456.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.385, allocations: 72.92 kB / 456.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.361e-05/0.385, allocations: 35.92 kB / 456.2 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008961/0.386, allocations: 0.6669 MB / 456.8 MB, free: 188 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.386, allocations: 0 / 456.8 MB, free: 188 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009671/0.3869, allocations: 240 kB / 457.1 MB, free: 15.95 MB / 382.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004283/0.3912, allocations: 2.323 MB / 459.4 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.3934, allocations: 1.045 MB / 460.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.3934, allocations: 4.875 kB / 460.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.3946, allocations: 0.702 MB / 461.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.3958, allocations: 180.7 kB / 461.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.4101, allocations: 8.75 MB / 470.1 MB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.4112, allocations: 1.104 MB / 471.2 MB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005894/0.4118, allocations: 131.5 kB / 471.3 MB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006617/0.4124, allocations: 447.3 kB / 471.8 MB, free: 1 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4124, allocations: 0 / 471.8 MB, free: 1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06163/0.4741, allocations: 21.26 MB / 493 MB, free: 11.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.26, allocations: 14.56 kB / 493 MB, free: 11.97 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_Vehicle.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Vehicle.pipe 2>&1)