Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001424, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2282/0.2282, allocations: 46.11 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica 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.002299/0.0023, allocations: 75.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3344, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003509/0.3379, allocations: 2.071 MB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.3392, allocations: 0.6058 MB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3393, allocations: 1.281 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.3395, allocations: 18.05 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.3396, allocations: 44.12 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.3401, allocations: 83.22 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.3404, allocations: 184.3 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.3405, allocations: 37.47 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.3407, allocations: 93.22 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.3409, allocations: 78.05 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.71e-05/0.341, allocations: 14.16 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.238e-05/0.341, allocations: 21.19 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.3411, allocations: 43.28 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.208e-05/0.3412, allocations: 73.53 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.3415, allocations: 178 kB / 0.534 GB, free: 10.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3415, allocations: 0 / 0.534 GB, free: 10.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3415, allocations: 5.312 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.3415, allocations: 0 / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008168/0.3423, allocations: 463.3 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3424, allocations: 13.61 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.3425, allocations: 46.81 kB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.3426, allocations: 26.58 kB / 0.5346 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.3429, allocations: 215.2 kB / 0.5348 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.3429, allocations: 12.73 kB / 0.5348 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.343, allocations: 16.19 kB / 0.5348 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.3433, allocations: 170 kB / 0.535 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.3434, allocations: 5.328 kB / 0.535 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.3434, allocations: 5.375 kB / 0.535 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3434, allocations: 2.75 kB / 0.535 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.3437, allocations: 112.2 kB / 0.5351 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009677/0.3447, allocations: 0.6755 MB / 0.5357 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.3451, allocations: 143.8 kB / 0.5359 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.3452, allocations: 61.27 kB / 0.5359 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3453, allocations: 5.438 kB / 0.5359 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.3453, allocations: 36.28 kB / 0.536 GB, free: 8.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.623e-06/0.3453, allocations: 0 / 0.536 GB, free: 8.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001424/0.3468, allocations: 408.2 kB / 0.5364 GB, free: 8.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3468, allocations: 53.84 kB / 0.5364 GB, free: 8.625 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.347, allocations: 155.4 kB / 0.5366 GB, free: 8.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.347, allocations: 30.83 kB / 0.5366 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.198e-05/0.3471, allocations: 121.9 kB / 0.5367 GB, free: 8.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.3472, allocations: 62.72 kB / 0.5368 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-05/0.3473, allocations: 39.23 kB / 0.5368 GB, free: 8.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3474, allocations: 330 kB / 0.5371 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.3476, allocations: 61.98 kB / 0.5372 GB, free: 7.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.3479, allocations: 108.3 kB / 0.5373 GB, free: 7.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/0.3483, allocations: 176.5 kB / 0.5375 GB, free: 7.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3483, allocations: 0 / 0.5375 GB, free: 7.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005403/0.3489, allocations: 219.6 kB / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3489, allocations: 5.062 kB / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3489, allocations: 1.656 kB / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3489, allocations: 1.156 kB / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/0.3492, allocations: 64.52 kB / 0.5377 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3493, allocations: 2.625 kB / 0.5377 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.3494, allocations: 10.58 kB / 0.5378 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.3495, allocations: 9.656 kB / 0.5378 GB, free: 7.566 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.3496, allocations: 120 kB / 0.5379 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.3497, allocations: 15.94 kB / 0.5379 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.3497, allocations: 24.27 kB / 0.5379 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3497, allocations: 10.16 kB / 0.5379 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3497, allocations: 3.938 kB / 0.5379 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3497, allocations: 1.062 kB / 0.5379 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.3508, allocations: 0.6173 MB / 0.5385 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3509, allocations: 4 kB / 0.5385 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.3511, allocations: 43.5 kB / 0.5386 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.3511, allocations: 1.094 kB / 0.5386 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.3512, allocations: 5.047 kB / 0.5386 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.3512, allocations: 5.125 kB / 0.5386 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3512, allocations: 0 / 0.5386 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.3517, allocations: 309.9 kB / 0.5389 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.3519, allocations: 103.4 kB / 0.539 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.3519, allocations: 6.125 kB / 0.539 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3521, allocations: 11.42 kB / 0.539 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.441e-05/0.3522, allocations: 18.38 kB / 0.539 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3522, allocations: 3.281 kB / 0.539 GB, free: 6.492 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.93e-05/0.3523, allocations: 117.3 kB / 0.5391 GB, free: 6.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3523, allocations: 0 / 0.5391 GB, free: 6.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.3526, allocations: 40.25 kB / 0.5392 GB, free: 6.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009113/0.3536, allocations: 0.833 MB / 0.54 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005283/0.3541, allocations: 172.5 kB / 0.5401 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3541, allocations: 1.156 kB / 0.5401 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.3544, allocations: 94.36 kB / 0.5402 GB, free: 5.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.3547, allocations: 18.31 kB / 0.5403 GB, free: 5.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.3578, allocations: 2.041 MB / 0.5422 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3582, allocations: 0.7196 MB / 0.543 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.3584, allocations: 31.03 kB / 0.543 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.3585, allocations: 44.08 kB / 0.543 GB, free: 3.078 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3585, allocations: 1.031 kB / 0.543 GB, free: 3.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.3846, allocations: 3.703 MB / 0.5466 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.504/8.888, allocations: 2.344 kB / 0.5466 GB, free: 0.8945 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_EngineGasForce_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1)