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.001758/0.001758, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002136/0.002136, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247 MB, free: 10.45 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.2256/0.2256, allocations: 46.11 MB / 344.4 MB, free: 11.46 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.002268/0.002268, allocations: 83.81 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3363, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003405/0.3398, allocations: 2.07 MB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.341, allocations: 0.6046 MB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.882e-05/0.3411, allocations: 6.562 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.3412, allocations: 22.48 kB / 0.5332 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.3414, allocations: 46.06 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.3418, allocations: 72.2 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.342, allocations: 180.3 kB / 0.5335 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.3422, allocations: 46.16 kB / 0.5336 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.3424, allocations: 80.89 kB / 0.5337 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3426, allocations: 81.78 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.3426, allocations: 13.75 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.3427, allocations: 20.5 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.846e-05/0.3427, allocations: 31.97 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.277e-05/0.3428, allocations: 83.02 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.3431, allocations: 180.6 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3431, allocations: 1.031 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3431, allocations: 4 kB / 0.5341 GB, free: 10.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3431, allocations: 0 / 0.5341 GB, free: 10.71 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.0008232/0.3439, allocations: 464.5 kB / 0.5345 GB, free: 10.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.344, allocations: 8.875 kB / 0.5345 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.344, allocations: 42.86 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.3442, allocations: 34.77 kB / 0.5346 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.3445, allocations: 219.2 kB / 0.5348 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3445, allocations: 9.172 kB / 0.5348 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.3446, allocations: 15.59 kB / 0.5348 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.3449, allocations: 167.4 kB / 0.535 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.3449, allocations: 3.953 kB / 0.535 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.345, allocations: 9.375 kB / 0.535 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.345, allocations: 4.094 kB / 0.535 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.3453, allocations: 107.9 kB / 0.5351 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009386/0.3462, allocations: 0.6831 MB / 0.5358 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.3466, allocations: 144.2 kB / 0.5359 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.3468, allocations: 69.27 kB / 0.536 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.3468, allocations: 1.375 kB / 0.536 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3468, allocations: 35.94 kB / 0.536 GB, free: 8.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.3468, allocations: 0 / 0.536 GB, free: 8.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.0014/0.3482, allocations: 399.6 kB / 0.5364 GB, free: 8.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.3483, allocations: 61.59 kB / 0.5364 GB, free: 8.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.3485, allocations: 155.8 kB / 0.5366 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.3485, allocations: 30.83 kB / 0.5366 GB, free: 8.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.744e-05/0.3486, allocations: 117.7 kB / 0.5367 GB, free: 8.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.626e-05/0.3487, allocations: 71.91 kB / 0.5368 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.059e-05/0.3488, allocations: 37.86 kB / 0.5368 GB, free: 8.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3489, allocations: 329.6 kB / 0.5371 GB, free: 7.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.3491, allocations: 67.17 kB / 0.5372 GB, free: 7.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.3494, allocations: 99.78 kB / 0.5373 GB, free: 7.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.3498, allocations: 176.6 kB / 0.5375 GB, free: 7.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3498, allocations: 0 / 0.5375 GB, free: 7.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005215/0.3503, allocations: 220.1 kB / 0.5377 GB, free: 7.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.3504, allocations: 9.375 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3504, allocations: 1.938 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3504, allocations: 1.031 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.3507, allocations: 56.8 kB / 0.5377 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.3507, allocations: 2.531 kB / 0.5377 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.3509, allocations: 15.02 kB / 0.5378 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.3509, allocations: 4.656 kB / 0.5378 GB, free: 7.598 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.0001383/0.3511, allocations: 132.7 kB / 0.5379 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.3511, allocations: 16.06 kB / 0.5379 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.827e-05/0.3512, allocations: 20.47 kB / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.3512, allocations: 10.23 kB / 0.5379 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3512, allocations: 0 / 0.5379 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3512, allocations: 0 / 0.5379 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.3523, allocations: 0.6196 MB / 0.5385 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3523, allocations: 0 / 0.5385 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.3526, allocations: 47.62 kB / 0.5386 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3526, allocations: 1.344 kB / 0.5386 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.3526, allocations: 1.219 kB / 0.5386 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3526, allocations: 1.25 kB / 0.5386 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3526, allocations: 0 / 0.5386 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005549/0.3532, allocations: 303.9 kB / 0.5389 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.3533, allocations: 106.9 kB / 0.539 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.3534, allocations: 1.844 kB / 0.539 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.3536, allocations: 15.45 kB / 0.539 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.3537, allocations: 18.97 kB / 0.539 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3537, allocations: 7.688 kB / 0.539 GB, free: 6.523 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3538, allocations: 120 kB / 0.5391 GB, free: 6.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3538, allocations: 1 kB / 0.5391 GB, free: 6.426 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.3541, allocations: 35.44 kB / 0.5392 GB, free: 6.422 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.0009056/0.355, allocations: 0.8405 MB / 0.54 GB, free: 5.668 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.3556, allocations: 163.7 kB / 0.5402 GB, free: 5.602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.3556, allocations: 1.125 kB / 0.5402 GB, free: 5.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.3559, allocations: 95.06 kB / 0.5402 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.3562, allocations: 23.61 kB / 0.5403 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.3595, allocations: 2.03 MB / 0.5422 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004401/0.3599, allocations: 0.7195 MB / 0.543 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.3602, allocations: 31.25 kB / 0.543 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3603, allocations: 48.28 kB / 0.543 GB, free: 3.109 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3603, allocations: 1.219 kB / 0.543 GB, free: 3.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.3877, allocations: 3.703 MB / 0.5466 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.681/10.07, allocations: 0.75 kB / 0.5466 GB, free: 0.8828 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 & 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)