Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: translateModel(ModelicaTest.MultiBody.Forces.EngineGasForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gasForce.dens|gasForce.f|gasForce.T|gasForce.V|gasForce.v_rel|gasForce.press",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce") translateModel(ModelicaTest.MultiBody.Forces.EngineGasForce,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gasForce.dens|gasForce.f|gasForce.T|gasForce.V|gasForce.v_rel|gasForce.press",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009239/0.000924, allocations: 201.8 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000744/0.000744, allocations: 100.2 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1752/0.1752, allocations: 44.84 MB / 392 MB, free: 9.305 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002401, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.08364, allocations: 62.96 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.001854/0.08553, allocations: 1.732 MB / 0.517 GB, free: 1.008 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.08626, allocations: 0.5419 MB / 0.5175 GB, free: 472 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.768e-05/0.08634, allocations: 4 kB / 0.5175 GB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.538e-05/0.08642, allocations: 19.84 kB / 0.5176 GB, free: 448 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.661e-05/0.0865, allocations: 35.7 kB / 0.5176 GB, free: 412 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.08678, allocations: 59.91 kB / 0.5177 GB, free: 352 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001565/0.08694, allocations: 163.2 kB / 0.5178 GB, free: 188 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.08706, allocations: 41.52 kB / 0.5179 GB, free: 148 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.08721, allocations: 71.78 kB / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.08733, allocations: 71.67 kB / 0.518 GB, free: 4 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1774/0.2647, allocations: 7.422 kB / 0.518 GB, free: 9.922 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.2649, allocations: 9.219 kB / 0.518 GB, free: 9.922 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.725e-05/0.2649, allocations: 24.88 kB / 0.518 GB, free: 9.922 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.699e-05/0.265, allocations: 50.11 kB / 0.5181 GB, free: 9.891 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.2652, allocations: 138 kB / 0.5182 GB, free: 9.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2652, allocations: 1.594 kB / 0.5182 GB, free: 9.887 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2652, allocations: 3.469 kB / 0.5182 GB, free: 9.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2652, allocations: 0 / 0.5182 GB, free: 9.887 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006632/0.2659, allocations: 438.3 kB / 0.5186 GB, free: 9.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.266, allocations: 9.25 kB / 0.5186 GB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.2661, allocations: 27.73 kB / 0.5187 GB, free: 9.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.2663, allocations: 215.1 kB / 0.5189 GB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.2663, allocations: 9.062 kB / 0.5189 GB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.513e-05/0.2664, allocations: 19.69 kB / 0.5189 GB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.2667, allocations: 166 kB / 0.5191 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.2667, allocations: 6.891 kB / 0.5191 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.2668, allocations: 5.781 kB / 0.5191 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.2668, allocations: 2.344 kB / 0.5191 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.2671, allocations: 118.2 kB / 0.5192 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007681/0.2679, allocations: 0.7057 MB / 0.5199 GB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.2683, allocations: 150.4 kB / 0.52 GB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.2684, allocations: 61.31 kB / 0.5201 GB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.2684, allocations: 5.578 kB / 0.5201 GB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.612e-05/0.2685, allocations: 40.78 kB / 0.5201 GB, free: 8.641 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.2685, allocations: 0 / 0.5201 GB, free: 8.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.001277/0.2698, allocations: 438.8 kB / 0.5205 GB, free: 8.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.943e-05/0.2698, allocations: 57.53 kB / 0.5206 GB, free: 8.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.2699, allocations: 156.8 kB / 0.5207 GB, free: 8.402 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2699, allocations: 38.2 kB / 0.5208 GB, free: 8.367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.377e-05/0.27, allocations: 119.5 kB / 0.5209 GB, free: 8.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.27, allocations: 74.59 kB / 0.521 GB, free: 8.223 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.27, allocations: 1 kB / 0.521 GB, free: 8.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.2701, allocations: 325.9 kB / 0.5213 GB, free: 7.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.2703, allocations: 75.8 kB / 0.5214 GB, free: 7.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.2705, allocations: 109 kB / 0.5215 GB, free: 7.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.2707, allocations: 88.36 kB / 0.5215 GB, free: 7.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2707, allocations: 0 / 0.5215 GB, free: 7.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004532/0.2712, allocations: 235.5 kB / 0.5218 GB, free: 7.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2712, allocations: 8.953 kB / 0.5218 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.2712, allocations: 0 / 0.5218 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2712, allocations: 1.844 kB / 0.5218 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.2715, allocations: 54.56 kB / 0.5218 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2715, allocations: 6.703 kB / 0.5218 GB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.2717, allocations: 21.41 kB / 0.5219 GB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.2717, allocations: 6.781 kB / 0.5219 GB, free: 7.816 MB / 346.7 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.22e-05/0.2718, allocations: 127.4 kB / 0.522 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/0.2719, allocations: 20.53 kB / 0.522 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.2719, allocations: 23 kB / 0.522 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2719, allocations: 2.469 kB / 0.522 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.272, allocations: 6.078 kB / 0.522 GB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.272, allocations: 1.594 kB / 0.522 GB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009714/0.2729, allocations: 0.643 MB / 0.5227 GB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.273, allocations: 1.031 kB / 0.5227 GB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.2732, allocations: 48.52 kB / 0.5227 GB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2732, allocations: 6.422 kB / 0.5227 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.2733, allocations: 5.594 kB / 0.5227 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2733, allocations: 1.375 kB / 0.5227 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2733, allocations: 0.7031 kB / 0.5227 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005088/0.2738, allocations: 320.8 kB / 0.523 GB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-05/0.2739, allocations: 105 kB / 0.5231 GB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.2739, allocations: 5.203 kB / 0.5231 GB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.2741, allocations: 17.72 kB / 0.5231 GB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.2742, allocations: 15.11 kB / 0.5232 GB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2742, allocations: 14.56 kB / 0.5232 GB, free: 7.078 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.1e-05/0.2743, allocations: 115.7 kB / 0.5233 GB, free: 7.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2743, allocations: 0 / 0.5233 GB, free: 7.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002798/0.2746, allocations: 36.88 kB / 0.5233 GB, free: 7.004 MB / 346.7 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001243/0.2747, allocations: 97.7 kB / 0.5234 GB, free: 6.918 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000499/0.2753, allocations: 188.2 kB / 0.5236 GB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2753, allocations: 3.938 kB / 0.5236 GB, free: 6.906 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.2755, allocations: 102.3 kB / 0.5237 GB, free: 6.902 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.2759, allocations: 22.58 kB / 0.5237 GB, free: 6.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000734/0.2766, allocations: 0.4943 MB / 0.5242 GB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.2768, allocations: 0.721 MB / 0.5249 GB, free: 5.918 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.088e-05/0.2769, allocations: 21.86 kB / 0.5249 GB, free: 5.91 MB / 346.7 MB Notification: Performance of SimCode: time 3.9e-07/0.2769, allocations: 0 / 0.5249 GB, free: 5.91 MB / 346.7 MB Notification: Performance of Templates: time 0.003678/0.2805, allocations: 2.157 MB / 0.527 GB, free: 5.758 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/EngineGasForce/EngineGasForce.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches