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.001694/0.001694, allocations: 199 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 244.1 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008317/0.0008316, allocations: 97.39 kB / 296.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2984/0.2984, allocations: 44.81 MB / 392.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002813, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3049, allocations: 62.96 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1105/0.4154, allocations: 89.99 MB / 0.6043 GB, free: 15.42 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.4157, allocations: 67.97 kB / 0.6044 GB, free: 15.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008671/0.4244, allocations: 2.968 MB / 0.6073 GB, free: 12.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4244, allocations: 0 / 0.6073 GB, free: 12.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.4244, allocations: 4 kB / 0.6073 GB, free: 12.37 MB / 426.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.0006078/0.425, allocations: 438.9 kB / 0.6077 GB, free: 11.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.4251, allocations: 8.031 kB / 0.6077 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.4252, allocations: 28.73 kB / 0.6078 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.4255, allocations: 210 kB / 0.608 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.4255, allocations: 8.375 kB / 0.608 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.4255, allocations: 12.38 kB / 0.608 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.4259, allocations: 174.5 kB / 0.6082 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4259, allocations: 0 / 0.6082 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.426, allocations: 8 kB / 0.6082 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.426, allocations: 4 kB / 0.6082 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003109/0.4263, allocations: 116.6 kB / 0.6083 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009371/0.4272, allocations: 0.7029 MB / 0.609 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.4276, allocations: 150.5 kB / 0.6091 GB, free: 10.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.4278, allocations: 64.83 kB / 0.6092 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.4278, allocations: 0 / 0.6092 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.4279, allocations: 38.5 kB / 0.6092 GB, free: 10.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.4279, allocations: 0 / 0.6092 GB, free: 10.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.001319/0.4292, allocations: 436.3 kB / 0.6096 GB, free: 9.824 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.4293, allocations: 59.34 kB / 0.6097 GB, free: 9.754 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.4294, allocations: 155.1 kB / 0.6098 GB, free: 9.594 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.4294, allocations: 29.7 kB / 0.6099 GB, free: 9.559 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.4295, allocations: 116.4 kB / 0.61 GB, free: 9.441 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.292e-05/0.4296, allocations: 74.88 kB / 0.61 GB, free: 9.367 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.4296, allocations: 4 kB / 0.61 GB, free: 9.363 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.4297, allocations: 326.8 kB / 0.6104 GB, free: 9.035 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4299, allocations: 75.95 kB / 0.6104 GB, free: 8.961 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.4301, allocations: 104 kB / 0.6105 GB, free: 8.848 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.4305, allocations: 193.8 kB / 0.6107 GB, free: 8.648 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.4305, allocations: 4 kB / 0.6107 GB, free: 8.645 MB / 426.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004777/0.431, allocations: 233.3 kB / 0.6109 GB, free: 8.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.431, allocations: 12.09 kB / 0.6109 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.431, allocations: 0 / 0.6109 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.4311, allocations: 0 / 0.6109 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.4313, allocations: 55.91 kB / 0.611 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.4314, allocations: 0 / 0.611 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.4315, allocations: 23.92 kB / 0.611 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4315, allocations: 4 kB / 0.611 GB, free: 8.316 MB / 426.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 0.0001169/0.4317, allocations: 141.7 kB / 0.6112 GB, free: 8.168 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.4317, allocations: 15.81 kB / 0.6112 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.4318, allocations: 17.19 kB / 0.6112 GB, free: 8.141 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4318, allocations: 4 kB / 0.6112 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4318, allocations: 0 / 0.6112 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.4318, allocations: 0 / 0.6112 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009837/0.4328, allocations: 0.6496 MB / 0.6118 GB, free: 7.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.4328, allocations: 0 / 0.6118 GB, free: 7.426 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.4331, allocations: 47.91 kB / 0.6119 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.4331, allocations: 4 kB / 0.6119 GB, free: 7.375 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.4331, allocations: 7.938 kB / 0.6119 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4331, allocations: 0 / 0.6119 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4331, allocations: 0 / 0.6119 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005052/0.4336, allocations: 330 kB / 0.6122 GB, free: 7.031 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.175e-05/0.4337, allocations: 96.91 kB / 0.6123 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.4338, allocations: 11.94 kB / 0.6123 GB, free: 6.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.434, allocations: 19.98 kB / 0.6123 GB, free: 6.887 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.434, allocations: 19.91 kB / 0.6123 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.4341, allocations: 8 kB / 0.6124 GB, free: 6.859 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.615e-05/0.4341, allocations: 113.2 kB / 0.6125 GB, free: 6.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4342, allocations: 3.938 kB / 0.6125 GB, free: 6.746 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002719/0.4344, allocations: 44 kB / 0.6125 GB, free: 6.703 MB / 426.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.0001275/0.4346, allocations: 95.25 kB / 0.6126 GB, free: 6.598 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.435, allocations: 191.8 kB / 0.6128 GB, free: 6.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4351, allocations: 192 / 0.6128 GB, free: 6.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.4353, allocations: 99.89 kB / 0.6129 GB, free: 6.312 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.4356, allocations: 30.62 kB / 0.6129 GB, free: 6.285 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007515/0.4364, allocations: 499.1 kB / 0.6134 GB, free: 5.762 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.4367, allocations: 0.7211 MB / 0.6141 GB, free: 5.012 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.81e-05/0.4368, allocations: 19.44 kB / 0.6141 GB, free: 4.992 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4368, allocations: 0 / 0.6141 GB, free: 4.992 MB / 426.7 MB Notification: Performance of Templates: time 0.003532/0.4403, allocations: 2.123 MB / 0.6162 GB, free: 2.875 MB / 426.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/jenkins1/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