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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 112.8 kB / 19.16 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 209.6 kB / 22.12 MB, free: 0.9258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 207.6 MB / 232.5 MB, free: 3.754 MB / 174.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 51.92 kB / 343 MB, free: 9.988 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08715, allocations: 49.13 MB / 392.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01667/0.1038, allocations: 12.97 MB / 405.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1175, allocations: 11.58 MB / 416.7 MB, free: 48 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1176, allocations: 3.938 kB / 416.7 MB, free: 44 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.1179, allocations: 67.73 kB / 416.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.1182, allocations: 95.36 kB / 416.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01215/0.1303, allocations: 5.069 MB / 421.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.1307, allocations: 230.9 kB / 422.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.502e-05/0.1307, allocations: 9.438 kB / 422.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004249/0.1312, allocations: 191.4 kB / 422.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.1313, allocations: 83.61 kB / 422.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.1313, allocations: 8 kB / 422.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01235/0.1437, allocations: 6.993 MB / 429.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/0.1437, allocations: 27.89 kB / 429.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1439, allocations: 67.73 kB / 429.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00821/0.1521, allocations: 3.867 MB / 433.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1521, allocations: 0 / 433.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1521, allocations: 0 / 433.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1521, allocations: 4 kB / 433.4 MB, free: 15.31 MB / 366.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.004789/0.1569, allocations: 1.178 MB / 434.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.1569, allocations: 8.031 kB / 434.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.594e-05/0.1569, allocations: 8.188 kB / 434.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.019e-05/0.157, allocations: 46.73 kB / 434.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005084/0.1575, allocations: 52.8 kB / 434.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1579, allocations: 220.2 kB / 434.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.158, allocations: 12.38 kB / 434.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.158, allocations: 19.94 kB / 434.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1594, allocations: 380.1 kB / 435.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1594, allocations: 3.938 kB / 435.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.1594, allocations: 8 kB / 435.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1594, allocations: 4 kB / 435.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.1609, allocations: 355.5 kB / 435.6 MB, free: 12.91 MB / 366.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.001571/0.1625, allocations: 1.184 MB / 436.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009277/0.1634, allocations: 275.7 kB / 437.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.1637, allocations: 114.8 kB / 437.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2506/0.4143, allocations: 47.64 MB / 484.8 MB, free: 52.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.4143, allocations: 38.84 kB / 484.9 MB, free: 52.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.4143, allocations: 0 / 484.9 MB, free: 52.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006405/0.4207, allocations: 1.576 MB / 486.4 MB, free: 51.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.4208, allocations: 109.1 kB / 486.6 MB, free: 51.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.721e-05/0.4208, allocations: 127 kB / 486.7 MB, free: 51.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.4209, allocations: 33.14 kB / 486.7 MB, free: 51.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.4209, allocations: 107.7 kB / 486.8 MB, free: 51.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.468e-05/0.421, allocations: 126.8 kB / 486.9 MB, free: 50.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.4211, allocations: 62.44 kB / 487 MB, free: 50.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.686e-05/0.4211, allocations: 328.2 kB / 487.3 MB, free: 50.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.4215, allocations: 134 kB / 487.4 MB, free: 50.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.4219, allocations: 202.9 kB / 487.6 MB, free: 50.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007527/0.4226, allocations: 360.5 kB / 488 MB, free: 50.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4226, allocations: 0.9062 kB / 488 MB, free: 50.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009595/0.4236, allocations: 421.2 kB / 488.4 MB, free: 49.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.4236, allocations: 8 kB / 488.4 MB, free: 49.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4236, allocations: 0 / 488.4 MB, free: 49.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.4238, allocations: 40.83 kB / 488.5 MB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004346/0.4243, allocations: 87.88 kB / 488.5 MB, free: 49.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000241/0.4245, allocations: 0.5485 MB / 489.1 MB, free: 49.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.4248, allocations: 26.53 kB / 489.1 MB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.4248, allocations: 18.19 kB / 489.1 MB, free: 49.13 MB / 382.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.0001079/0.4249, allocations: 145.9 kB / 489.3 MB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.425, allocations: 20 kB / 489.3 MB, free: 48.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.4266, allocations: 1.447 MB / 490.7 MB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.4266, allocations: 19.97 kB / 490.8 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4267, allocations: 0 / 490.8 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.4267, allocations: 11.7 kB / 490.8 MB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.4288, allocations: 1.971 MB / 492.7 MB, free: 45.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4288, allocations: 0 / 492.7 MB, free: 45.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.4293, allocations: 87.86 kB / 492.8 MB, free: 45.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002723/0.4295, allocations: 68.92 kB / 492.9 MB, free: 45.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.4296, allocations: 11.98 kB / 492.9 MB, free: 45.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002029/0.4298, allocations: 0.5913 MB / 493.5 MB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4298, allocations: 0 / 493.5 MB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.4314, allocations: 1.698 MB / 495.2 MB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.4315, allocations: 128.5 kB / 495.3 MB, free: 42.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.4315, allocations: 16 kB / 495.3 MB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003407/0.4318, allocations: 23.92 kB / 495.4 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.4319, allocations: 31.95 kB / 495.4 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.4319, allocations: 15.98 kB / 495.4 MB, free: 42.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.194e-05/0.432, allocations: 95.2 kB / 495.5 MB, free: 42.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.432, allocations: 4 kB / 495.5 MB, free: 42.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002119/0.4341, allocations: 0.9602 MB / 496.5 MB, free: 41.76 MB / 382.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.005216/0.4393, allocations: 3.28 MB / 499.8 MB, free: 38.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.4405, allocations: 0.5811 MB / 0.4886 GB, free: 37.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4405, allocations: 3.844 kB / 0.4886 GB, free: 37.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.4411, allocations: 457.2 kB / 0.489 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007348/0.4418, allocations: 77.67 kB / 0.4891 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005641/0.4474, allocations: 3.911 MB / 0.4929 GB, free: 33.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.4476, allocations: 0.8178 MB / 0.4937 GB, free: 32.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.4479, allocations: 138.5 kB / 0.4939 GB, free: 32.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.4481, allocations: 131.4 kB / 0.494 GB, free: 32.29 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4481, allocations: 0 / 0.494 GB, free: 32.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06404/0.5122, allocations: 40.61 MB / 0.5336 GB, free: 7.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.25, allocations: 4.062 kB / 0.5337 GB, free: 7.59 MB / 398.1 MB " [Timeout remaining time 646] (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 --stepSize=0.00019992 --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) [Timeout 52.5] 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","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.183451778953895]