Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.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) 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: translateModel(Modelica.Media.Examples.ReferenceAir.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 118.2 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2315, allocations: 50.55 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.02436/0.2559, allocations: 27.11 MB / 436.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004459/0.2604, allocations: 4.159 MB / 440.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.2607, allocations: 7.938 kB / 440.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006316/0.2613, allocations: 206.7 kB / 440.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000728/0.2621, allocations: 342.2 kB / 441.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003698/0.2658, allocations: 1.471 MB / 442.5 MB, free: 196 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.2672, allocations: 0.8873 MB / 443.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.2675, allocations: 104.6 kB / 443.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005788/0.2733, allocations: 4.049 MB / 447.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.2737, allocations: 274.9 kB / 447.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-05/0.2738, allocations: 32 kB / 447.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.2752, allocations: 0.7259 MB / 448.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.2753, allocations: 95.7 kB / 448.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.2756, allocations: 199.2 kB / 448.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.2768, allocations: 0.8495 MB / 449.7 MB, free: 8.977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2769, allocations: 4 kB / 449.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2769, allocations: 0 / 449.7 MB, free: 8.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.2769, allocations: 0 / 449.7 MB, free: 8.973 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009908/0.2779, allocations: 0.651 MB / 450.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2779, allocations: 8.031 kB / 450.4 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/0.2784, allocations: 56.53 kB / 450.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.2788, allocations: 295.7 kB / 450.8 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.2788, allocations: 20.94 kB / 450.8 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.2789, allocations: 24.38 kB / 450.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004969/0.2794, allocations: 346.6 kB / 451.1 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.2794, allocations: 0 / 451.1 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.2795, allocations: 12 kB / 451.1 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2795, allocations: 8 kB / 451.2 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.2798, allocations: 218 kB / 451.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.2921, allocations: 5.908 MB / 457.3 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.2924, allocations: 182.6 kB / 457.5 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.2925, allocations: 84.84 kB / 457.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.3027, allocations: 3.889 MB / 461.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3028, allocations: 42.5 kB / 461.5 MB, free: 12.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.605e-06/0.3028, allocations: 0 / 461.5 MB, free: 12.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.006284/0.3091, allocations: 1.424 MB / 462.9 MB, free: 10.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.3091, allocations: 55.41 kB / 462.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.3094, allocations: 258.5 kB / 463.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3094, allocations: 29.7 kB / 463.2 MB, free: 10.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.3096, allocations: 184.1 kB / 463.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/0.3096, allocations: 94.64 kB / 463.5 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.3098, allocations: 73.61 kB / 463.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3099, allocations: 334.8 kB / 463.9 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.31, allocations: 99.89 kB / 464 MB, free: 9.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.3103, allocations: 182.9 kB / 464.2 MB, free: 9.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.3107, allocations: 303 kB / 464.5 MB, free: 9.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3107, allocations: 0 / 464.5 MB, free: 9.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006722/0.3113, allocations: 398.7 kB / 464.9 MB, free: 8.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3114, allocations: 7.938 kB / 464.9 MB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3114, allocations: 4 kB / 464.9 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004017/0.3154, allocations: 0.9291 MB / 465.8 MB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.3157, allocations: 67.91 kB / 465.9 MB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.3172, allocations: 1.978 MB / 467.8 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3174, allocations: 12.03 kB / 467.9 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3174, allocations: 12 kB / 467.9 MB, free: 5.527 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.3176, allocations: 157.7 kB / 468 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/0.3177, allocations: 31.72 kB / 468.1 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007301/0.3184, allocations: 494.1 kB / 468.5 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3184, allocations: 0 / 468.5 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.3184, allocations: 7.984 kB / 468.5 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006228/0.319, allocations: 0.7091 MB / 469.2 MB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.3203, allocations: 0.9495 MB / 470.2 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3203, allocations: 4.031 kB / 470.2 MB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.3205, allocations: 47.97 kB / 470.2 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.3222, allocations: 308.4 kB / 470.6 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.3223, allocations: 15.94 kB / 470.6 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005074/0.3228, allocations: 0.646 MB / 471.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3228, allocations: 0 / 471.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000962/0.3238, allocations: 0.7214 MB / 471.9 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.467e-05/0.3239, allocations: 104.8 kB / 472 MB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.3239, allocations: 12.11 kB / 472 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3241, allocations: 8 kB / 472.1 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.3242, allocations: 15.98 kB / 472.1 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.3242, allocations: 7.984 kB / 472.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001721/0.3244, allocations: 186 kB / 472.3 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.3244, allocations: 0 / 472.3 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006308/0.325, allocations: 187.9 kB / 472.4 MB, free: 0.6992 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000604/0.3256, allocations: 267 kB / 472.7 MB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008569/0.3265, allocations: 454.6 kB / 473.1 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.3265, allocations: 4.75 kB / 473.2 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.327, allocations: 235.8 kB / 473.4 MB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008774/0.3279, allocations: 183.4 kB / 473.6 MB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.3291, allocations: 0.7963 MB / 474.4 MB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3295, allocations: 0.7721 MB / 475.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.3297, allocations: 42.97 kB / 475.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.3298, allocations: 31.42 kB / 475.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of SimCode: time 1.462e-06/0.3298, allocations: 3.938 kB / 475.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of Templates: time 0.01579/0.3456, allocations: 10 MB / 485.2 MB, free: 3.898 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches