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.001451/0.001451, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2338/0.2338, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.00221/0.00221, allocations: 77.38 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1324, allocations: 62.45 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003689/0.1361, allocations: 2.059 MB / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1373, allocations: 0.6077 MB / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.187e-05/0.1374, allocations: 4 kB / 482.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.1375, allocations: 15.8 kB / 482.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.69e-05/0.1376, allocations: 39.64 kB / 482.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.138, allocations: 83.8 kB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000234/0.1383, allocations: 183.3 kB / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001704/0.1384, allocations: 37.55 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.1386, allocations: 87.75 kB / 483.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1388, allocations: 75.67 kB / 483.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.1388, allocations: 16 kB / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.004e-05/0.1389, allocations: 24 kB / 483.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/0.139, allocations: 39.83 kB / 483.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.698e-05/0.1391, allocations: 71.64 kB / 483.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.1393, allocations: 183.6 kB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1394, allocations: 4 kB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1394, allocations: 0 / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1394, allocations: 0 / 483.7 MB, free: 1.57 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.0009007/0.1403, allocations: 455.1 kB / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1403, allocations: 12.03 kB / 484.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.034e-05/0.1404, allocations: 46.73 kB / 484.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.1406, allocations: 24.75 kB / 484.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.1409, allocations: 220 kB / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1409, allocations: 8.609 kB / 484.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.1409, allocations: 19.94 kB / 484.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.1413, allocations: 165.7 kB / 484.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.1413, allocations: 3.906 kB / 484.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.1413, allocations: 15.98 kB / 484.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1414, allocations: 0 / 484.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/0.1417, allocations: 111.9 kB / 484.8 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.1427, allocations: 0.6769 MB / 485.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.1431, allocations: 138.5 kB / 485.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1432, allocations: 64.77 kB / 485.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1433, allocations: 4 kB / 485.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1433, allocations: 34.56 kB / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.332e-06/0.1433, allocations: 0 / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001391/0.1447, allocations: 409.4 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.1448, allocations: 55.34 kB / 486.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1449, allocations: 158.2 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.145, allocations: 29.7 kB / 486.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.145, allocations: 120.2 kB / 486.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.1451, allocations: 59.11 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/0.1452, allocations: 41.7 kB / 486.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1453, allocations: 330.8 kB / 486.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.1455, allocations: 63.95 kB / 486.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.1458, allocations: 95.39 kB / 487 MB, free: 14.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1462, allocations: 173.5 kB / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1462, allocations: 0 / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005402/0.1468, allocations: 217.3 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1468, allocations: 8 kB / 487.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1468, allocations: 0 / 487.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1468, allocations: 0 / 487.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.1471, allocations: 63.83 kB / 487.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1472, allocations: 0 / 487.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.1473, allocations: 16.08 kB / 487.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1474, allocations: 8 kB / 487.5 MB, free: 13.52 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.0001298/0.1475, allocations: 129.7 kB / 487.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.1476, allocations: 15.81 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.1476, allocations: 25.17 kB / 487.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1476, allocations: 3.938 kB / 487.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1476, allocations: 0 / 487.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1476, allocations: 0 / 487.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.1487, allocations: 0.6201 MB / 488.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1487, allocations: 0 / 488.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.149, allocations: 51.84 kB / 488.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.149, allocations: 0 / 488.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.149, allocations: 3.984 kB / 488.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.149, allocations: 4 kB / 488.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1491, allocations: 0 / 488.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.1496, allocations: 301.2 kB / 488.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.1497, allocations: 104.9 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.1498, allocations: 12 kB / 488.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.15, allocations: 11.98 kB / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.051e-05/0.15, allocations: 15.97 kB / 488.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.1501, allocations: 7.938 kB / 488.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.14e-05/0.1502, allocations: 119.2 kB / 488.9 MB, free: 12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1502, allocations: 0 / 488.9 MB, free: 12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1505, allocations: 36 kB / 489 MB, free: 11.96 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.0008785/0.1514, allocations: 0.8355 MB / 489.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000525/0.1519, allocations: 175.8 kB / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1519, allocations: 0 / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.1522, allocations: 91.84 kB / 490 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.1525, allocations: 30.31 kB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.1555, allocations: 2.024 MB / 492.1 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1559, allocations: 0.721 MB / 492.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.1561, allocations: 25.42 kB / 492.8 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.1562, allocations: 47.41 kB / 492.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1562, allocations: 3.938 kB / 492.9 MB, free: 7.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.1821, allocations: 3.637 MB / 496.5 MB, free: 4.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.029/8.212, allocations: 0 / 496.5 MB, free: 4.316 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1)