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: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001089/0.001089, allocations: 198 kB / 18.07 MB, free: 5.41 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.163/1.163, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001011/0.001011, allocations: 52.61 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06659/0.06761, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01316/0.0808, allocations: 13.73 MB / 340.4 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.09228, allocations: 12.48 MB / 352.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.649e-05/0.09235, allocations: 0 / 352.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002634/0.09264, allocations: 63.67 kB / 353 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.09285, allocations: 87.48 kB / 353 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008225/0.1011, allocations: 3.996 MB / 357 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002659/0.1014, allocations: 266.9 kB / 357.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.428e-05/0.1014, allocations: 13.45 kB / 357.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.1017, allocations: 187.4 kB / 357.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.786e-05/0.1019, allocations: 75.69 kB / 357.6 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1019, allocations: 7.984 kB / 357.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008991/0.1109, allocations: 6.895 MB / 364.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.082e-05/0.1109, allocations: 31.84 kB / 364.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.475e-05/0.111, allocations: 63.73 kB / 364.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004345/0.1154, allocations: 3.891 MB / 368.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1154, allocations: 0 / 368.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1154, allocations: 0 / 368.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1154, allocations: 0 / 368.5 MB, free: 10.9 MB / 318.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.003811/0.1192, allocations: 1.146 MB / 369.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1193, allocations: 12.03 kB / 369.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.33e-05/0.1193, allocations: 46.73 kB / 369.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004337/0.1198, allocations: 48.78 kB / 369.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.12, allocations: 224.1 kB / 369.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.12, allocations: 12.38 kB / 369.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.1201, allocations: 24.12 kB / 370 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.1212, allocations: 380.1 kB / 370.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1213, allocations: 0 / 370.3 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.1213, allocations: 4 kB / 370.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1213, allocations: 4 kB / 370.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.1226, allocations: 359.5 kB / 370.7 MB, free: 8.539 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.001168/0.1238, allocations: 1.191 MB / 371.9 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007614/0.1246, allocations: 271.8 kB / 372.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/0.1248, allocations: 114.8 kB / 372.3 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1973/0.3222, allocations: 47.45 MB / 419.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3222, allocations: 37.69 kB / 419.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.505e-06/0.3222, allocations: 0 / 419.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.00587/0.3281, allocations: 1.587 MB / 421.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.3282, allocations: 106.8 kB / 421.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.3282, allocations: 124.5 kB / 421.6 MB, free: 1.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3282, allocations: 33.52 kB / 421.6 MB, free: 1.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.3283, allocations: 108.7 kB / 421.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.3284, allocations: 119.5 kB / 421.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.15e-05/0.3284, allocations: 66 kB / 421.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.72e-05/0.3285, allocations: 322 kB / 422.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003183/0.3288, allocations: 136.8 kB / 422.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.3292, allocations: 206.1 kB / 422.5 MB, free: 436 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006395/0.3298, allocations: 342 kB / 422.9 MB, free: 188 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3298, allocations: 4 kB / 422.9 MB, free: 184 kB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009593/0.3308, allocations: 424.8 kB / 423.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3308, allocations: 7.562 kB / 423.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.3308, allocations: 0 / 423.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.331, allocations: 39.89 kB / 423.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.3315, allocations: 89.09 kB / 423.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003082/0.3318, allocations: 0.5462 MB / 424 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.3321, allocations: 25.38 kB / 424 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.3321, allocations: 15.25 kB / 424 MB, free: 15.17 MB / 334.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 (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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.3323, allocations: 142.9 kB / 424.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.3324, allocations: 23.75 kB / 424.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001832/0.3342, allocations: 1.464 MB / 425.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.3342, allocations: 20.8 kB / 425.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3343, allocations: 0 / 425.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3343, allocations: 0 / 425.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.3367, allocations: 1.983 MB / 427.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3367, allocations: 0 / 427.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.3371, allocations: 79.53 kB / 427.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002779/0.3374, allocations: 75.66 kB / 427.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.3375, allocations: 17.47 kB / 427.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002899/0.3378, allocations: 0.5914 MB / 428.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3378, allocations: 0 / 428.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.3396, allocations: 1.693 MB / 430.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.3397, allocations: 128.4 kB / 430.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/0.3398, allocations: 12.47 kB / 430.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.3401, allocations: 26.55 kB / 430.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.3402, allocations: 34.73 kB / 430.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.3402, allocations: 15.86 kB / 430.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.299e-05/0.3403, allocations: 91.14 kB / 430.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3403, allocations: 0 / 430.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002286/0.3426, allocations: 0.9537 MB / 431.3 MB, free: 9.613 MB / 334.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 (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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005514/0.3481, allocations: 3.273 MB / 434.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.3493, allocations: 0.6036 MB / 435.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3493, allocations: 0 / 435.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00071/0.35, allocations: 0.5044 MB / 435.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.3507, allocations: 86.11 kB / 435.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005986/0.3567, allocations: 4.07 MB / 439.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.3571, allocations: 0.8139 MB / 440.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003646/0.3575, allocations: 138.1 kB / 440.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.3577, allocations: 131.4 kB / 440.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3577, allocations: 0 / 440.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.826/2.184, allocations: 40.06 MB / 481 MB, free: 8.801 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/2.184, allocations: 208.2 kB / 481.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.769/5.953, allocations: 4 kB / 481.2 MB, free: 8.543 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/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