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.001804/0.001804, allocations: 105 kB / 17.58 MB, free: 5.422 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.001926/0.001926, allocations: 192.2 kB / 18.5 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.631/2.631, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002452/0.002452, allocations: 48.16 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1535, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02652/0.1801, allocations: 12.9 MB / 340.3 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.2031, allocations: 11.53 MB / 351.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.2034, allocations: 3.938 kB / 351.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005423/0.204, allocations: 75.55 kB / 351.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005342/0.2046, allocations: 87.42 kB / 352 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02333/0.2279, allocations: 5.065 MB / 357 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005679/0.2285, allocations: 230.9 kB / 357.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.819e-05/0.2286, allocations: 13.44 kB / 357.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007003/0.2293, allocations: 195.3 kB / 357.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.2295, allocations: 75.69 kB / 357.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.2296, allocations: 8 kB / 357.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02013/0.2497, allocations: 6.821 MB / 364.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.2499, allocations: 31.86 kB / 364.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.2501, allocations: 71.72 kB / 364.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.2633, allocations: 3.872 MB / 368.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.2633, allocations: 4 kB / 368.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.2633, allocations: 0 / 368.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.2634, allocations: 0 / 368.3 MB, free: 11.28 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.007427/0.2708, allocations: 1.139 MB / 369.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.964e-05/0.2709, allocations: 8.031 kB / 369.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.271, allocations: 50.73 kB / 369.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008552/0.2719, allocations: 48.8 kB / 369.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004706/0.2724, allocations: 220.1 kB / 369.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/0.2724, allocations: 12.38 kB / 369.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.2725, allocations: 16.12 kB / 369.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/0.2747, allocations: 384.1 kB / 370.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.2747, allocations: 11.88 kB / 370.2 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.429e-05/0.2748, allocations: 4 kB / 370.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.2748, allocations: 4 kB / 370.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.2772, allocations: 351.6 kB / 370.6 MB, free: 8.93 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.002291/0.2795, allocations: 1.199 MB / 371.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.2809, allocations: 271.8 kB / 372 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.2814, allocations: 110.9 kB / 372.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4113/0.6927, allocations: 47.45 MB / 419.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.748e-05/0.6928, allocations: 39.06 kB / 419.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.576e-06/0.6928, allocations: 0 / 419.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.01123/0.7041, allocations: 1.573 MB / 421.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.7042, allocations: 113.3 kB / 421.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.7043, allocations: 129 kB / 421.4 MB, free: 1.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.7044, allocations: 32.58 kB / 421.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/0.7044, allocations: 103.1 kB / 421.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.7046, allocations: 122.8 kB / 421.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.7048, allocations: 71.77 kB / 421.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.606e-05/0.7049, allocations: 326.3 kB / 422.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/0.7055, allocations: 133.5 kB / 422.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006482/0.7062, allocations: 199 kB / 422.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.7074, allocations: 355.1 kB / 422.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7074, allocations: 0 / 422.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001656/0.7091, allocations: 425.4 kB / 423.2 MB, free: 464 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.7091, allocations: 8 kB / 423.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.7092, allocations: 0 / 423.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003775/0.7095, allocations: 35.97 kB / 423.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000698/0.7103, allocations: 93.91 kB / 423.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000517/0.7108, allocations: 0.5498 MB / 423.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/0.7113, allocations: 23.36 kB / 423.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.838e-05/0.7114, allocations: 15.92 kB / 423.9 MB, free: 15.75 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.0002552/0.7116, allocations: 143.2 kB / 424 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.7118, allocations: 19.75 kB / 424.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003697/0.7156, allocations: 1.445 MB / 425.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.243e-05/0.7156, allocations: 27.77 kB / 425.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.7156, allocations: 3.281 kB / 425.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.7157, allocations: 0 / 425.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005012/0.7207, allocations: 1.969 MB / 427.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.7208, allocations: 0 / 427.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000867/0.7216, allocations: 86.52 kB / 427.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006363/0.7223, allocations: 75.7 kB / 427.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.7224, allocations: 11.86 kB / 427.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007147/0.7231, allocations: 0.5875 MB / 428.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7231, allocations: 0 / 428.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00405/0.7272, allocations: 1.699 MB / 430 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.7274, allocations: 132.2 kB / 430.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.006e-05/0.7275, allocations: 19.44 kB / 430.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006849/0.7282, allocations: 23.95 kB / 430.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.7283, allocations: 31.38 kB / 430.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.799e-05/0.7284, allocations: 11.98 kB / 430.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001042/0.7285, allocations: 98.2 kB / 430.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7286, allocations: 4 kB / 430.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.005019/0.7336, allocations: 0.9511 MB / 431.2 MB, free: 10.19 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.01323/0.7469, allocations: 3.254 MB / 434.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.7498, allocations: 0.6298 MB / 435.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.7499, allocations: 4 kB / 435.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.7514, allocations: 0.5113 MB / 435.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.7528, allocations: 76.91 kB / 435.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/0.7653, allocations: 3.892 MB / 439.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.7659, allocations: 0.8177 MB / 440.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000696/0.7666, allocations: 138.2 kB / 440.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.767, allocations: 133.2 kB / 440.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.767, allocations: 0 / 440.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1559/0.9229, allocations: 40.53 MB / 481.2 MB, free: 8.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.87/24.79, allocations: 15.84 kB / 481.2 MB, free: 8.559 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches