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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009273/0.0009273, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 226.5 MB / 243.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007964/0.0007964, allocations: 100.2 kB / 295.5 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.2795/0.2795, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002727, allocations: 11.94 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2685, allocations: 62.96 MB / 0.516 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.001754/0.2703, allocations: 1.745 MB / 0.5177 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007798/0.2711, allocations: 0.5476 MB / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.2712, allocations: 0 / 0.5182 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.99e-05/0.2713, allocations: 17.28 kB / 0.5182 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.45e-05/0.2714, allocations: 33.09 kB / 0.5182 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.2717, allocations: 63.52 kB / 0.5183 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.2719, allocations: 161.5 kB / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.272, allocations: 46.06 kB / 0.5185 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.2722, allocations: 78.58 kB / 0.5186 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.2723, allocations: 74.88 kB / 0.5187 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2724, allocations: 8 kB / 0.5187 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.747e-05/0.2724, allocations: 12.31 kB / 0.5187 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.2725, allocations: 25.59 kB / 0.5187 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.157e-05/0.2725, allocations: 97.72 kB / 0.5188 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.2727, allocations: 132 kB / 0.5189 GB, free: 35.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2727, allocations: 0 / 0.5189 GB, free: 35.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2727, allocations: 0 / 0.5189 GB, free: 35.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.2727, allocations: 0 / 0.5189 GB, free: 35.43 MB / 378.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.0006285/0.2733, allocations: 443.1 kB / 0.5193 GB, free: 35.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2734, allocations: 8.906 kB / 0.5193 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.2734, allocations: 48.05 kB / 0.5194 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.2736, allocations: 30.98 kB / 0.5194 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.2738, allocations: 215.8 kB / 0.5196 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.2738, allocations: 7.25 kB / 0.5196 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.2738, allocations: 16.72 kB / 0.5197 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.2741, allocations: 169.8 kB / 0.5198 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2742, allocations: 3.906 kB / 0.5198 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.2742, allocations: 6.75 kB / 0.5198 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2742, allocations: 7.938 kB / 0.5198 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.2745, allocations: 118.2 kB / 0.5199 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007155/0.2752, allocations: 0.6996 MB / 0.5206 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.2755, allocations: 156 kB / 0.5208 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.2757, allocations: 67.16 kB / 0.5208 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.2757, allocations: 0 / 0.5208 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.2757, allocations: 33.38 kB / 0.5209 GB, free: 33.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/0.2757, allocations: 0 / 0.5209 GB, free: 33.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.001215/0.277, allocations: 444.3 kB / 0.5213 GB, free: 33.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.277, allocations: 57.78 kB / 0.5214 GB, free: 33.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.406e-05/0.2771, allocations: 154 kB / 0.5215 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.2771, allocations: 32.42 kB / 0.5215 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.17e-05/0.2772, allocations: 121.5 kB / 0.5216 GB, free: 33.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.555e-05/0.2772, allocations: 65.53 kB / 0.5217 GB, free: 33.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.2772, allocations: 6.938 kB / 0.5217 GB, free: 33.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.327e-05/0.2773, allocations: 324.6 kB / 0.522 GB, free: 32.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.2775, allocations: 73.2 kB / 0.5221 GB, free: 32.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.2777, allocations: 116.2 kB / 0.5222 GB, free: 32.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.278, allocations: 188.7 kB / 0.5224 GB, free: 32.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.278, allocations: 2.938 kB / 0.5224 GB, free: 32.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004345/0.2785, allocations: 230.4 kB / 0.5226 GB, free: 32.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2785, allocations: 5.75 kB / 0.5226 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2785, allocations: 3 kB / 0.5226 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2785, allocations: 3.938 kB / 0.5226 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.2788, allocations: 58.73 kB / 0.5227 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2788, allocations: 2.25 kB / 0.5227 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.279, allocations: 18.94 kB / 0.5227 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.279, allocations: 8.891 kB / 0.5227 GB, free: 32.68 MB / 378.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 8.697e-05/0.2791, allocations: 131.7 kB / 0.5228 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.2792, allocations: 16.81 kB / 0.5228 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.2792, allocations: 24 kB / 0.5229 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2792, allocations: 0 / 0.5229 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2792, allocations: 2.719 kB / 0.5229 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.2792, allocations: 11.12 kB / 0.5229 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008347/0.2801, allocations: 0.6369 MB / 0.5235 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2801, allocations: 2.594 kB / 0.5235 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.2803, allocations: 53.05 kB / 0.5236 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.2803, allocations: 3.938 kB / 0.5236 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2804, allocations: 6.719 kB / 0.5236 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2804, allocations: 0 / 0.5236 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2804, allocations: 0 / 0.5236 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000437/0.2808, allocations: 322.6 kB / 0.5239 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.455e-05/0.2809, allocations: 104.7 kB / 0.524 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.2809, allocations: 7.422 kB / 0.524 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2811, allocations: 23.09 kB / 0.524 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/0.2812, allocations: 16.48 kB / 0.524 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.2812, allocations: 9.688 kB / 0.524 GB, free: 31.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.662e-05/0.2813, allocations: 112.5 kB / 0.5241 GB, free: 31.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2813, allocations: 0 / 0.5241 GB, free: 31.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002536/0.2816, allocations: 39.81 kB / 0.5242 GB, free: 31.62 MB / 378.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.0006063/0.2822, allocations: 0.8546 MB / 0.525 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000418/0.2826, allocations: 185.1 kB / 0.5252 GB, free: 30.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2826, allocations: 0 / 0.5252 GB, free: 30.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.2828, allocations: 103.8 kB / 0.5253 GB, free: 30.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.2831, allocations: 18.66 kB / 0.5253 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.2848, allocations: 1.14 MB / 0.5264 GB, free: 30.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.2849, allocations: 0.7196 MB / 0.5271 GB, free: 29.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.2851, allocations: 49.48 kB / 0.5272 GB, free: 29.38 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2851, allocations: 3.938 kB / 0.5272 GB, free: 29.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.443/2.728, allocations: 2.351 MB / 0.5295 GB, free: 29.18 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_EngineGasForce_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > 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