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.001263/0.001263, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2293/0.2293, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.00226/0.00226, allocations: 80.23 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1184, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.004436/0.1229, allocations: 2.056 MB / 482.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1241, allocations: 0.6155 MB / 482.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1242, allocations: 0 / 482.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.1243, allocations: 19.8 kB / 482.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.881e-05/0.1244, allocations: 35.64 kB / 482.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.1248, allocations: 83.81 kB / 483 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.1251, allocations: 183.3 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.1252, allocations: 37.55 kB / 483.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1254, allocations: 83.77 kB / 483.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1256, allocations: 79.67 kB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.1256, allocations: 12 kB / 483.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.602e-05/0.1257, allocations: 27.94 kB / 483.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.1257, allocations: 43.83 kB / 483.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.69e-05/0.1258, allocations: 75.64 kB / 483.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.1261, allocations: 175.6 kB / 483.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1261, allocations: 3.938 kB / 483.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1261, allocations: 0 / 483.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1261, allocations: 0 / 483.7 MB, free: 1.598 MB / 350.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.0008416/0.1269, allocations: 467.1 kB / 484.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.127, allocations: 8.031 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.658e-05/0.127, allocations: 46.73 kB / 484.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1272, allocations: 24.75 kB / 484.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.1275, allocations: 211.6 kB / 484.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1275, allocations: 12.55 kB / 484.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.718e-05/0.1275, allocations: 15.94 kB / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.1279, allocations: 161.8 kB / 484.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.1279, allocations: 11.89 kB / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.1279, allocations: 4 kB / 484.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.128, allocations: 4 kB / 484.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.1283, allocations: 107.9 kB / 484.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/0.1292, allocations: 0.6769 MB / 485.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.1296, allocations: 142.5 kB / 485.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1297, allocations: 60.77 kB / 485.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.1298, allocations: 4 kB / 485.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.1298, allocations: 34.56 kB / 485.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.1298, allocations: 0 / 485.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001389/0.1312, allocations: 413.3 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.1313, allocations: 51.41 kB / 486.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.1314, allocations: 162.2 kB / 486.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.1315, allocations: 25.7 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.076e-05/0.1316, allocations: 124.2 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.201e-05/0.1316, allocations: 59.11 kB / 486.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.1317, allocations: 37.7 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1319, allocations: 330.8 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1321, allocations: 63.95 kB / 486.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.1323, allocations: 99.39 kB / 487 MB, free: 14.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.1328, allocations: 169.5 kB / 487.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1328, allocations: 4 kB / 487.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005107/0.1333, allocations: 217.3 kB / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1333, allocations: 4 kB / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1333, allocations: 4 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1334, allocations: 4 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.1337, allocations: 63.92 kB / 487.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1337, allocations: 4 kB / 487.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.1339, allocations: 15.86 kB / 487.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1339, allocations: 12 kB / 487.5 MB, free: 13.54 MB / 366.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.0001201/0.134, allocations: 121.8 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.1341, allocations: 15.81 kB / 487.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.1341, allocations: 25.17 kB / 487.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.1341, allocations: 7.938 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1341, allocations: 4 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1342, allocations: 0 / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.1352, allocations: 0.6162 MB / 488.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1352, allocations: 0 / 488.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1355, allocations: 43.91 kB / 488.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1355, allocations: 4 kB / 488.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.1355, allocations: 3.984 kB / 488.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1355, allocations: 0 / 488.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1355, allocations: 0 / 488.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005443/0.1361, allocations: 305.2 kB / 488.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.1362, allocations: 104.9 kB / 488.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.1362, allocations: 7.938 kB / 488.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.1365, allocations: 11.98 kB / 488.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.1365, allocations: 19.97 kB / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1366, allocations: 7.984 kB / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.716e-05/0.1367, allocations: 119.2 kB / 488.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1367, allocations: 0 / 488.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1369, allocations: 36 kB / 489 MB, free: 11.99 MB / 366.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.0008431/0.1378, allocations: 0.8355 MB / 489.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.1383, allocations: 171.8 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1383, allocations: 0 / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.1386, allocations: 91.84 kB / 490 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.1389, allocations: 29.34 kB / 490.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.1418, allocations: 2.027 MB / 492.1 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.1422, allocations: 0.7171 MB / 492.8 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.1424, allocations: 29.36 kB / 492.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.1425, allocations: 51.41 kB / 492.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1425, allocations: 3.938 kB / 492.9 MB, free: 7.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.1687, allocations: 3.64 MB / 496.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.955/8.124, allocations: 4 kB / 496.5 MB, free: 4.34 MB / 366.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)