Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001202, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 64.08 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2204, allocations: 50.56 MB / 409.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.06134/0.2818, allocations: 65.7 MB / 475 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006021/0.2879, allocations: 5.457 MB / 480.4 MB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.2882, allocations: 11.94 kB / 480.4 MB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009176/0.2891, allocations: 346 kB / 480.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007528/0.2899, allocations: 0.5089 MB / 481.3 MB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02509/0.315, allocations: 7.443 MB / 488.7 MB, free: 1.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002514/0.3175, allocations: 1.547 MB / 490.3 MB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004196/0.318, allocations: 212.8 kB / 490.5 MB, free: 60 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.3192, allocations: 0.623 MB / 491.1 MB, free: 15.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.3201, allocations: 0.5645 MB / 491.7 MB, free: 14.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.3204, allocations: 80 kB / 491.8 MB, free: 14.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02665/0.347, allocations: 10.23 MB / 0.4902 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007114/0.3478, allocations: 331.2 kB / 0.4905 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000873/0.3487, allocations: 430.5 kB / 0.4909 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.3638, allocations: 5.978 MB / 0.4968 GB, free: 13.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3638, allocations: 4 kB / 0.4968 GB, free: 13.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3638, allocations: 0 / 0.4968 GB, free: 13.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3639, allocations: 0 / 0.4968 GB, free: 13.8 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003157/0.367, allocations: 1.609 MB / 0.4984 GB, free: 12.14 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3671, allocations: 8.031 kB / 0.4984 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004066/0.3675, allocations: 87.56 kB / 0.4984 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000557/0.368, allocations: 449 kB / 0.4989 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.3681, allocations: 49.31 kB / 0.4989 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.3682, allocations: 63.95 kB / 0.499 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3698, allocations: 0.8107 MB / 0.4998 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.3699, allocations: 4 kB / 0.4998 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.947e-05/0.3699, allocations: 24 kB / 0.4998 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.3699, allocations: 16 kB / 0.4998 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001759/0.3717, allocations: 1.028 MB / 0.5008 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.3873, allocations: 12.8 MB / 0.5133 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3889, allocations: 0.7377 MB / 0.514 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005309/0.3895, allocations: 406.6 kB / 0.5144 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.4031, allocations: 12.26 MB / 0.5264 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.4032, allocations: 43.22 kB / 0.5264 GB, free: 10.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.256e-06/0.4032, allocations: 0 / 0.5264 GB, free: 10.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=88): time 0.009539/0.4128, allocations: 3.392 MB / 0.5297 GB, free: 7.316 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.4128, allocations: 60.41 kB / 0.5298 GB, free: 7.246 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.4132, allocations: 348.5 kB / 0.5301 GB, free: 6.895 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.434e-05/0.4133, allocations: 49.64 kB / 0.5302 GB, free: 6.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.4134, allocations: 245.1 kB / 0.5304 GB, free: 6.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.4137, allocations: 325.2 kB / 0.5307 GB, free: 6.277 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.4139, allocations: 162.6 kB / 0.5309 GB, free: 6.109 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.414, allocations: 366.8 kB / 0.5312 GB, free: 5.742 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.4146, allocations: 369.8 kB / 0.5316 GB, free: 5.383 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008703/0.4155, allocations: 492.2 kB / 0.5321 GB, free: 4.867 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.4171, allocations: 0.902 MB / 0.5329 GB, free: 3.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4171, allocations: 0 / 0.5329 GB, free: 3.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002389/0.4195, allocations: 1.117 MB / 0.534 GB, free: 2.797 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.4196, allocations: 4.281 kB / 0.534 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4196, allocations: 8 kB / 0.534 GB, free: 2.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007607/0.4203, allocations: 163.3 kB / 0.5342 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.421, allocations: 187.7 kB / 0.5344 GB, free: 2.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2007/0.6218, allocations: 4.119 MB / 0.5384 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/0.6223, allocations: 18.61 kB / 0.5384 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.6225, allocations: 43.31 kB / 0.5385 GB, free: 130 MB / 462.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 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.0003551/0.6228, allocations: 230.5 kB / 0.5387 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004032/0.6232, allocations: 66.36 kB / 0.5387 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.6257, allocations: 1.283 MB / 0.54 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.6257, allocations: 8.312 kB / 0.54 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.6257, allocations: 3.672 kB / 0.54 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001518/0.6273, allocations: 1.319 MB / 0.5413 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.6299, allocations: 1.965 MB / 0.5432 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.6299, allocations: 0 / 0.5432 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006125/0.6305, allocations: 164.9 kB / 0.5434 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001572/0.6321, allocations: 299.5 kB / 0.5437 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.473e-05/0.6322, allocations: 27.45 kB / 0.5437 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004855/0.6327, allocations: 1.292 MB / 0.5449 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6327, allocations: 3.875 kB / 0.5449 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.6347, allocations: 1.419 MB / 0.5463 GB, free: 125.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.6349, allocations: 130.1 kB / 0.5465 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.453e-05/0.635, allocations: 19.91 kB / 0.5465 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.6355, allocations: 31.52 kB / 0.5465 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.6355, allocations: 61.53 kB / 0.5466 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.6356, allocations: 42.94 kB / 0.5466 GB, free: 125.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002363/0.6359, allocations: 283.4 kB / 0.5469 GB, free: 125.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6359, allocations: 2.5 kB / 0.5469 GB, free: 125.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002979/0.6389, allocations: 1.421 MB / 0.5483 GB, free: 125.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005328/0.6442, allocations: 1.744 MB / 0.55 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.6461, allocations: 1.169 MB / 0.5511 GB, free: 124.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6461, allocations: 1.438 kB / 0.5511 GB, free: 124.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007236/0.6468, allocations: 0.4891 MB / 0.5516 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.6485, allocations: 388 kB / 0.552 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.6508, allocations: 1.685 MB / 0.5536 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.6511, allocations: 0.9102 MB / 0.5545 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006101/0.6517, allocations: 203.5 kB / 0.5547 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.6519, allocations: 79.42 kB / 0.5548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of SimCode: time 4.81e-07/0.6519, allocations: 0 / 0.5548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of Templates: time 0.04588/0.6978, allocations: 50.17 MB / 0.6038 GB, free: 71.75 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches