Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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_trunk_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_trunk_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.00154/0.00154, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001882/0.001882, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3066, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003255/0.3099, allocations: 2.068 MB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.311, allocations: 0.605 MB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.3111, allocations: 2.75 kB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.3113, allocations: 17.17 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.3114, allocations: 43.69 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.3119, allocations: 83 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.3121, allocations: 183.7 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.3123, allocations: 46.27 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.3125, allocations: 89.25 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3127, allocations: 82.27 kB / 0.5336 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.3127, allocations: 14.31 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.448e-05/0.3128, allocations: 15.34 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.774e-05/0.3128, allocations: 40.55 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.192e-05/0.3129, allocations: 78.2 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.3132, allocations: 172.5 kB / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3132, allocations: 0 / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3132, allocations: 1.406 kB / 0.534 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.3132, allocations: 4 kB / 0.534 GB, free: 10.73 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.0008152/0.314, allocations: 463.7 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3141, allocations: 8.469 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.684e-05/0.3141, allocations: 43.16 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3143, allocations: 27.61 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.3146, allocations: 218.4 kB / 0.5347 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.3146, allocations: 12.77 kB / 0.5347 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.3146, allocations: 19.75 kB / 0.5347 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.315, allocations: 170.6 kB / 0.5349 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.315, allocations: 1.125 kB / 0.5349 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.3151, allocations: 5.188 kB / 0.5349 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3151, allocations: 7.75 kB / 0.5349 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.3154, allocations: 115.3 kB / 0.535 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009106/0.3163, allocations: 0.6831 MB / 0.5357 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.3166, allocations: 132.6 kB / 0.5358 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3168, allocations: 65.64 kB / 0.5359 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.3168, allocations: 5.359 kB / 0.5359 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.3169, allocations: 39.88 kB / 0.5359 GB, free: 8.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.3169, allocations: 0 / 0.5359 GB, free: 8.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001413/0.3183, allocations: 401.8 kB / 0.5363 GB, free: 8.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.3184, allocations: 57.84 kB / 0.5363 GB, free: 8.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.3185, allocations: 151.7 kB / 0.5365 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.3186, allocations: 30.89 kB / 0.5365 GB, free: 8.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.563e-05/0.3186, allocations: 122.5 kB / 0.5366 GB, free: 8.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.079e-05/0.3187, allocations: 62.77 kB / 0.5367 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.14e-05/0.3188, allocations: 37.61 kB / 0.5367 GB, free: 8.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3189, allocations: 326.1 kB / 0.537 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.3192, allocations: 71.05 kB / 0.5371 GB, free: 7.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.3194, allocations: 99.92 kB / 0.5372 GB, free: 7.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/0.3198, allocations: 170.1 kB / 0.5374 GB, free: 7.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3198, allocations: 0 / 0.5374 GB, free: 7.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005179/0.3203, allocations: 226.8 kB / 0.5376 GB, free: 7.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3204, allocations: 5.5 kB / 0.5376 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3204, allocations: 5.312 kB / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3204, allocations: 2.406 kB / 0.5376 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.3207, allocations: 52.45 kB / 0.5376 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3207, allocations: 5.125 kB / 0.5376 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.3209, allocations: 15.39 kB / 0.5377 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.3209, allocations: 5.188 kB / 0.5377 GB, free: 7.625 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.0001254/0.321, allocations: 125.3 kB / 0.5378 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/0.3211, allocations: 19.31 kB / 0.5378 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.049e-05/0.3212, allocations: 23.83 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.3212, allocations: 6.312 kB / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.3212, allocations: 0 / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3212, allocations: 1.375 kB / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.3222, allocations: 0.6165 MB / 0.5384 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3222, allocations: 0 / 0.5384 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.3225, allocations: 39.47 kB / 0.5385 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3225, allocations: 1.438 kB / 0.5385 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.3225, allocations: 9.391 kB / 0.5385 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3226, allocations: 1.156 kB / 0.5385 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3226, allocations: 0 / 0.5385 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000547/0.3231, allocations: 310.6 kB / 0.5388 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.3232, allocations: 102.6 kB / 0.5389 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3233, allocations: 5.75 kB / 0.5389 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.3235, allocations: 14.95 kB / 0.5389 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.3236, allocations: 19.16 kB / 0.5389 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3236, allocations: 3.562 kB / 0.5389 GB, free: 6.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.927e-05/0.3237, allocations: 121.1 kB / 0.539 GB, free: 6.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3237, allocations: 0 / 0.539 GB, free: 6.457 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.324, allocations: 36.47 kB / 0.5391 GB, free: 6.453 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.0008578/0.3249, allocations: 0.8321 MB / 0.5399 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005175/0.3254, allocations: 166.8 kB / 0.54 GB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3254, allocations: 0.9375 kB / 0.54 GB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.3256, allocations: 95.38 kB / 0.5401 GB, free: 5.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.326, allocations: 24.22 kB / 0.5402 GB, free: 5.578 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.3291, allocations: 2.035 MB / 0.5421 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.3294, allocations: 0.7154 MB / 0.5428 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001825/0.3296, allocations: 35.02 kB / 0.5429 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.3297, allocations: 44.86 kB / 0.5429 GB, free: 3.145 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3297, allocations: 0 / 0.5429 GB, free: 3.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02463/0.3544, allocations: 3.747 MB / 0.5466 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.511, allocations: 12.06 kB / 0.5466 GB, free: 0.8711 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_EngineGasForce_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable gasForce.dens in file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat. Warning: Get data of variable gasForce.dens from file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat failed! " Variables in the reference:time,gasForce.dens,gasForce.f,gasForce.T,gasForce.V,gasForce.v_rel,gasForce.press Variables in the result:der(der(position.s)),der(gasForce.flange_b.s),der(gasForce.s_rel),der(mass.s),der(mass.v),der(position.s),fixed.flange.f,fixed.flange.s,fixed.s0,gasForce.L,gasForce.T,gasForce.V,gasForce.d,gasForce.f,gasForce.flange_a.f,gasForce.flange_a.s,gasForce.flange_b.f,gasForce.flange_b.s,gasForce.k,gasForce.k0,gasForce.k1,gasForce.press,gasForce.s_rel,gasForce.v_rel,gasForce.x,mass.L,mass.a,mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,position.a,position.exact,position.f_crit,position.flange.f,position.flange.s,position.s,position.s_ref,position.useSupport,position.v,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time