Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2278, allocations: 50.54 MB / 409.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.05071/0.2785, allocations: 50.65 MB / 459.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005892/0.2845, allocations: 5.195 MB / 465.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.2847, allocations: 7.938 kB / 465.1 MB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007448/0.2855, allocations: 246.6 kB / 465.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005885/0.2861, allocations: 369.9 kB / 465.7 MB, free: 8.926 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01568/0.3018, allocations: 7.116 MB / 472.8 MB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.303, allocations: 1.091 MB / 473.9 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.3033, allocations: 149.5 kB / 474.1 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006018/0.3093, allocations: 3.597 MB / 477.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.3098, allocations: 398.7 kB / 478.1 MB, free: 12.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.307e-05/0.3099, allocations: 60 kB / 478.1 MB, free: 12.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01649/0.3264, allocations: 9.963 MB / 488.1 MB, free: 2.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3268, allocations: 219.5 kB / 488.3 MB, free: 2.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004326/0.3272, allocations: 310.8 kB / 488.6 MB, free: 2.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.3383, allocations: 5.522 MB / 494.1 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3383, allocations: 3.984 kB / 494.1 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3383, allocations: 0 / 494.1 MB, free: 12.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3383, allocations: 0 / 494.1 MB, free: 12.48 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002836/0.3412, allocations: 1.41 MB / 495.5 MB, free: 11.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3412, allocations: 11.97 kB / 495.5 MB, free: 11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003459/0.3416, allocations: 71.64 kB / 495.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.342, allocations: 363.2 kB / 496 MB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.3421, allocations: 29 kB / 496 MB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.3421, allocations: 48 kB / 496 MB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.3434, allocations: 0.5843 MB / 496.6 MB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3434, allocations: 3.938 kB / 496.6 MB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/0.3434, allocations: 16 kB / 496.6 MB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.3435, allocations: 12 kB / 496.7 MB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3448, allocations: 0.7456 MB / 497.4 MB, free: 9.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.3596, allocations: 11.98 MB / 0.4974 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.3609, allocations: 0.5235 MB / 0.498 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.3613, allocations: 257.4 kB / 0.4982 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/0.3749, allocations: 11.9 MB / 0.5098 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.3749, allocations: 46.94 kB / 0.5099 GB, free: 11.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.184e-06/0.375, allocations: 0 / 0.5099 GB, free: 11.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=55): time 0.005612/0.3806, allocations: 2.121 MB / 0.5119 GB, free: 9.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3806, allocations: 59.95 kB / 0.512 GB, free: 9.695 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003291/0.381, allocations: 318.9 kB / 0.5123 GB, free: 9.379 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.381, allocations: 37.7 kB / 0.5123 GB, free: 9.336 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.3811, allocations: 200.8 kB / 0.5125 GB, free: 9.137 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.3813, allocations: 202.2 kB / 0.5127 GB, free: 8.938 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.3815, allocations: 118.2 kB / 0.5128 GB, free: 8.816 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3816, allocations: 350.8 kB / 0.5132 GB, free: 8.465 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.382, allocations: 237 kB / 0.5134 GB, free: 8.234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/0.3826, allocations: 339.3 kB / 0.5137 GB, free: 7.867 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3838, allocations: 0.6073 MB / 0.5143 GB, free: 7.227 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3838, allocations: 0 / 0.5143 GB, free: 7.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001834/0.3856, allocations: 0.7519 MB / 0.515 GB, free: 6.461 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3857, allocations: 11.94 kB / 0.5151 GB, free: 6.449 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3857, allocations: 288 / 0.5151 GB, free: 6.449 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004721/0.3861, allocations: 110.5 kB / 0.5152 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.3866, allocations: 123.8 kB / 0.5153 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.3891, allocations: 3.464 MB / 0.5187 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.3894, allocations: 12.19 kB / 0.5187 GB, free: 2.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.3895, allocations: 35.98 kB / 0.5187 GB, free: 2.395 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems 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 {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002592/0.3898, allocations: 197.6 kB / 0.5189 GB, free: 2.191 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.3901, allocations: 47.72 kB / 0.5189 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.3916, allocations: 0.8152 MB / 0.5197 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3916, allocations: 8 kB / 0.5197 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3916, allocations: 3.984 kB / 0.5198 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001085/0.3927, allocations: 0.7596 MB / 0.5205 GB, free: 464 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.3947, allocations: 1.297 MB / 0.5218 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3947, allocations: 0 / 0.5218 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004285/0.3951, allocations: 99.88 kB / 0.5219 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008834/0.396, allocations: 148.7 kB / 0.522 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.3961, allocations: 23.98 kB / 0.522 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003596/0.3964, allocations: 0.6562 MB / 0.5227 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3964, allocations: 0 / 0.5227 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.398, allocations: 0.9095 MB / 0.5236 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.3981, allocations: 116.9 kB / 0.5237 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.861e-05/0.3982, allocations: 16.03 kB / 0.5237 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.3986, allocations: 15.98 kB / 0.5237 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.853e-05/0.3987, allocations: 32.39 kB / 0.5237 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/0.3987, allocations: 31.98 kB / 0.5238 GB, free: 12.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002522/0.399, allocations: 257.9 kB / 0.524 GB, free: 12.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.399, allocations: 0 / 0.524 GB, free: 12.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003121/0.4021, allocations: 1.337 MB / 0.5253 GB, free: 11.39 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004872/0.407, allocations: 1.714 MB / 0.527 GB, free: 9.668 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.4085, allocations: 0.8075 MB / 0.5278 GB, free: 8.832 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.4085, allocations: 4 kB / 0.5278 GB, free: 8.828 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005469/0.4091, allocations: 287.8 kB / 0.528 GB, free: 8.547 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.4104, allocations: 281.2 kB / 0.5283 GB, free: 8.273 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.4122, allocations: 1.101 MB / 0.5294 GB, free: 7.133 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.4125, allocations: 0.8326 MB / 0.5302 GB, free: 6.273 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004643/0.413, allocations: 152.2 kB / 0.5303 GB, free: 6.121 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.4132, allocations: 59.41 kB / 0.5304 GB, free: 6.066 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4132, allocations: 0 / 0.5304 GB, free: 6.066 MB / 462.1 MB Notification: Performance of Templates: time 0.2237/0.6369, allocations: 45.17 MB / 0.5745 GB, free: 99.79 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches