Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 97.52 kB / 16.93 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 182.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004868/0.0004869, allocations: 16.78 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.09215, allocations: 47.58 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01272/0.1049, allocations: 11.08 MB / 339.4 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1161, allocations: 9.814 MB / 349.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1163, allocations: 4 kB / 349.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003432/0.1167, allocations: 67.72 kB / 349.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.117, allocations: 79.75 kB / 349.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01096/0.1279, allocations: 3.911 MB / 353.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.1283, allocations: 159.7 kB / 353.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.898e-05/0.1283, allocations: 9.453 kB / 353.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004459/0.1288, allocations: 199.3 kB / 353.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1289, allocations: 59.78 kB / 353.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.1289, allocations: 11.98 kB / 353.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.1416, allocations: 6.812 MB / 360.5 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.922e-05/0.1417, allocations: 27.91 kB / 360.5 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/0.1418, allocations: 49.64 kB / 360.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005163/0.147, allocations: 2.561 MB / 363.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.147, allocations: 0 / 363.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.147, allocations: 0 / 363.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.147, allocations: 3.938 kB / 363.1 MB, free: 1.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004553/0.1516, allocations: 1.115 MB / 364.3 MB, free: 16 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1516, allocations: 8.031 kB / 364.3 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004949/0.1521, allocations: 67.72 kB / 364.3 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.1524, allocations: 214.9 kB / 364.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.1525, allocations: 12.22 kB / 364.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.832e-05/0.1525, allocations: 12 kB / 364.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.1537, allocations: 386.5 kB / 364.9 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1538, allocations: 8 kB / 365 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1538, allocations: 8 kB / 365 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1538, allocations: 4 kB / 365 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1552, allocations: 368.2 kB / 365.3 MB, free: 14.88 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.1566, allocations: 1.188 MB / 366.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008093/0.1574, allocations: 288.3 kB / 366.8 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2596/0.417, allocations: 47.88 MB / 414.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.417, allocations: 33.56 kB / 414.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.817e-06/0.417, allocations: 7.891 kB / 414.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006315/0.4234, allocations: 1.616 MB / 416.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.4234, allocations: 110.9 kB / 416.4 MB, free: 8.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.029e-05/0.4235, allocations: 124.6 kB / 416.6 MB, free: 8.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.4235, allocations: 32.27 kB / 416.6 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.185e-05/0.4236, allocations: 100.6 kB / 416.7 MB, free: 8.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.4237, allocations: 117.9 kB / 416.8 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.4237, allocations: 7.25 kB / 416.8 MB, free: 8.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.831e-05/0.4237, allocations: 329.1 kB / 417.1 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.4241, allocations: 138.7 kB / 417.3 MB, free: 7.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000392/0.4245, allocations: 213.3 kB / 417.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.4249, allocations: 151 kB / 417.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4249, allocations: 0 / 417.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000956/0.4259, allocations: 443.8 kB / 418.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.4259, allocations: 6.906 kB / 418.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4259, allocations: 4 kB / 418.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002374/0.4262, allocations: 43.86 kB / 418.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.4266, allocations: 90.88 kB / 418.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002546/0.4269, allocations: 0.5446 MB / 418.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.4272, allocations: 34.41 kB / 418.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.4273, allocations: 17.3 kB / 418.8 MB, free: 6.324 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.4274, allocations: 133.8 kB / 418.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.639e-05/0.4275, allocations: 15.81 kB / 418.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.4294, allocations: 1.466 MB / 420.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.4294, allocations: 22.47 kB / 420.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4294, allocations: 7.953 kB / 420.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.4294, allocations: 3.984 kB / 420.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/0.4318, allocations: 1.986 MB / 422.4 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.4319, allocations: 0 / 422.4 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.4323, allocations: 85.89 kB / 422.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003286/0.4326, allocations: 75.8 kB / 422.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.4327, allocations: 15.23 kB / 422.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002304/0.4329, allocations: 0.5894 MB / 423.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4329, allocations: 4.031 kB / 423.2 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.4347, allocations: 1.762 MB / 425 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.4348, allocations: 132.4 kB / 425.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.4348, allocations: 11 kB / 425.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.4352, allocations: 23.14 kB / 425.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.4353, allocations: 35.84 kB / 425.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.4353, allocations: 11.06 kB / 425.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.135e-05/0.4353, allocations: 90.52 kB / 425.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4353, allocations: 10.58 kB / 425.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002466/0.4378, allocations: 0.9554 MB / 426.2 MB, free: 0.6172 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004548/0.4424, allocations: 1.139 MB / 427.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4437, allocations: 0.5943 MB / 428 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4437, allocations: 0 / 428 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007256/0.4444, allocations: 0.5138 MB / 428.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006001/0.445, allocations: 69.75 kB / 428.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.4474, allocations: 1.562 MB / 430.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.4478, allocations: 0.8256 MB / 430.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003869/0.4482, allocations: 136 kB / 431.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.4483, allocations: 35.41 kB / 431.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4483, allocations: 0 / 431.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Templates: time 0.04953/0.4978, allocations: 36.29 MB / 467.4 MB, free: 8.309 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches