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.001256/0.001256, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 46.09 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001487, allocations: 75.88 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3622, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003338/0.3656, allocations: 2.064 MB / 0.5325 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3668, allocations: 0.5963 MB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.3669, allocations: 10.41 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.3671, allocations: 25.03 kB / 0.5331 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.3672, allocations: 36.77 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.3676, allocations: 78.7 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.3678, allocations: 188.5 kB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.368, allocations: 42.16 kB / 0.5335 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.3682, allocations: 90.2 kB / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3684, allocations: 81.78 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.3684, allocations: 13.75 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.615e-05/0.3685, allocations: 19.12 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.277e-05/0.3685, allocations: 35.97 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.673e-05/0.3686, allocations: 78.97 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.3689, allocations: 184.4 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3689, allocations: 0 / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3689, allocations: 1.375 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3689, allocations: 3.938 kB / 0.534 GB, free: 10.7 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.0007936/0.3697, allocations: 455.2 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3697, allocations: 13.69 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.3698, allocations: 46.23 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.37, allocations: 26.86 kB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.3702, allocations: 205.5 kB / 0.5347 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3703, allocations: 9.297 kB / 0.5347 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.3703, allocations: 19.94 kB / 0.5347 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.3707, allocations: 170.3 kB / 0.5349 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.3707, allocations: 0 / 0.5349 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.3707, allocations: 10.86 kB / 0.5349 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-06/0.3707, allocations: 2.5 kB / 0.5349 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002919/0.371, allocations: 111.1 kB / 0.535 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008846/0.3719, allocations: 0.6911 MB / 0.5357 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.3722, allocations: 140.2 kB / 0.5358 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.3724, allocations: 61.47 kB / 0.5359 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.3724, allocations: 1.281 kB / 0.5359 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.3725, allocations: 36.98 kB / 0.5359 GB, free: 8.941 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.3725, allocations: 3.938 kB / 0.5359 GB, free: 8.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00134/0.3738, allocations: 404.5 kB / 0.5363 GB, free: 8.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.3739, allocations: 54.22 kB / 0.5363 GB, free: 8.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.374, allocations: 155.3 kB / 0.5365 GB, free: 8.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.3741, allocations: 30.7 kB / 0.5365 GB, free: 8.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.631e-05/0.3742, allocations: 117.6 kB / 0.5366 GB, free: 8.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.3742, allocations: 63.67 kB / 0.5367 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.501e-05/0.3743, allocations: 37.7 kB / 0.5367 GB, free: 8.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3745, allocations: 338.1 kB / 0.537 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.3747, allocations: 58.88 kB / 0.5371 GB, free: 7.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3749, allocations: 103.7 kB / 0.5372 GB, free: 7.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004164/0.3753, allocations: 170.1 kB / 0.5374 GB, free: 7.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3753, allocations: 0 / 0.5374 GB, free: 7.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004929/0.3758, allocations: 222.4 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3759, allocations: 5.781 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3759, allocations: 1.125 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3759, allocations: 6.344 kB / 0.5376 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.3762, allocations: 56.5 kB / 0.5376 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3762, allocations: 2 kB / 0.5376 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.3764, allocations: 11.05 kB / 0.5376 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.3764, allocations: 12.88 kB / 0.5377 GB, free: 7.613 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.0001292/0.3766, allocations: 128.5 kB / 0.5378 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.3766, allocations: 15.75 kB / 0.5378 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.3767, allocations: 20.03 kB / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.3767, allocations: 6.031 kB / 0.5378 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.954e-06/0.3767, allocations: 0.6875 kB / 0.5378 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3767, allocations: 3.984 kB / 0.5378 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.3778, allocations: 0.6172 MB / 0.5384 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3778, allocations: 0 / 0.5384 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.378, allocations: 48.09 kB / 0.5385 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.3781, allocations: 1.25 kB / 0.5385 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.3781, allocations: 4.969 kB / 0.5385 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3781, allocations: 1.531 kB / 0.5385 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3781, allocations: 7.938 kB / 0.5385 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005192/0.3786, allocations: 302 kB / 0.5388 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.3787, allocations: 107.7 kB / 0.5389 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.3788, allocations: 5.219 kB / 0.5389 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.379, allocations: 16.17 kB / 0.5389 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.3791, allocations: 13.39 kB / 0.5389 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.3791, allocations: 8.828 kB / 0.5389 GB, free: 6.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.3792, allocations: 113.3 kB / 0.539 GB, free: 6.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.793e-06/0.3792, allocations: 0 / 0.539 GB, free: 6.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00029/0.3795, allocations: 39.69 kB / 0.5391 GB, free: 6.438 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.0008277/0.3804, allocations: 0.8325 MB / 0.5399 GB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004838/0.3809, allocations: 174.4 kB / 0.54 GB, free: 5.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3809, allocations: 5.125 kB / 0.5401 GB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.3811, allocations: 87.45 kB / 0.5401 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.3815, allocations: 21.67 kB / 0.5402 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.3845, allocations: 2.028 MB / 0.5421 GB, free: 3.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3848, allocations: 0.7192 MB / 0.5428 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001611/0.385, allocations: 30.38 kB / 0.5429 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3851, allocations: 46.08 kB / 0.5429 GB, free: 3.137 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3851, allocations: 0 / 0.5429 GB, free: 3.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.4085, allocations: 3.759 MB / 0.5466 GB, free: 0.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.346, allocations: 4.891 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