Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007836/0.0007836, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007928/0.0007928, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8181/0.8181, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.112e-05, allocations: 8.891 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009482/0.009503, allocations: 11.93 MB / 336.5 MB, free: 3.863 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007241/0.01674, allocations: 10.12 MB / 346.6 MB, free: 9.695 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.154e-05/0.01682, allocations: 4 kB / 346.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.01708, allocations: 63.53 kB / 346.7 MB, free: 9.629 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.01732, allocations: 83.36 kB / 346.7 MB, free: 9.547 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008583/0.0259, allocations: 5.109 MB / 351.9 MB, free: 4.441 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.02617, allocations: 234.8 kB / 352.1 MB, free: 4.211 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.399e-05/0.02621, allocations: 5.641 kB / 352.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.02653, allocations: 215.3 kB / 352.3 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.505e-05/0.02662, allocations: 67.8 kB / 352.4 MB, free: 3.922 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.02663, allocations: 8 kB / 352.4 MB, free: 3.914 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007149/0.03378, allocations: 6.696 MB / 359.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.083e-05/0.03384, allocations: 31.89 kB / 359.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.0339, allocations: 51.86 kB / 359.1 MB, free: 13.13 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005012/0.03891, allocations: 4.982 MB / 364.1 MB, free: 8.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.03891, allocations: 4 kB / 364.1 MB, free: 8.133 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.03891, allocations: 0 / 364.1 MB, free: 8.133 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.03892, allocations: 0 / 364.1 MB, free: 8.133 MB / 330.7 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.002372/0.04129, allocations: 1.088 MB / 365.2 MB, free: 7.012 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.04133, allocations: 8.031 kB / 365.2 MB, free: 7.004 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.685e-05/0.04137, allocations: 50.73 kB / 365.3 MB, free: 6.945 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.04161, allocations: 52.84 kB / 365.3 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.04183, allocations: 161.5 kB / 365.5 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.04186, allocations: 12.66 kB / 365.5 MB, free: 6.699 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.04189, allocations: 20.25 kB / 365.5 MB, free: 6.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006627/0.04255, allocations: 440.8 kB / 366 MB, free: 6.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.04256, allocations: 3.938 kB / 366 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.04259, allocations: 8 kB / 366 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.04259, allocations: 4 kB / 366 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006712/0.04326, allocations: 363.5 kB / 366.3 MB, free: 5.836 MB / 330.7 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.0008093/0.04407, allocations: 1.028 MB / 367.4 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004333/0.04451, allocations: 267.7 kB / 367.6 MB, free: 4.449 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.04466, allocations: 122.5 kB / 367.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04142/0.08608, allocations: 26.09 MB / 393.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.08611, allocations: 42.55 kB / 393.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.08611, allocations: 0 / 393.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003505/0.08962, allocations: 1.495 MB / 395.4 MB, free: 8.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.08966, allocations: 110.8 kB / 395.5 MB, free: 8.484 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/0.08973, allocations: 129.7 kB / 395.6 MB, free: 8.348 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.08976, allocations: 29.7 kB / 395.6 MB, free: 8.312 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.08981, allocations: 104.6 kB / 395.7 MB, free: 8.207 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.932e-05/0.08987, allocations: 126.9 kB / 395.8 MB, free: 8.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.651e-05/0.08996, allocations: 65.69 kB / 395.9 MB, free: 8.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.026e-05/0.09003, allocations: 322.8 kB / 396.2 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/0.09025, allocations: 143.7 kB / 396.4 MB, free: 7.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.09048, allocations: 194.8 kB / 396.6 MB, free: 7.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004316/0.09091, allocations: 354.6 kB / 396.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.09091, allocations: 0 / 396.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006082/0.09152, allocations: 429.9 kB / 397.3 MB, free: 6.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.09153, allocations: 4 kB / 397.3 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.09154, allocations: 4 kB / 397.3 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/0.09168, allocations: 41.05 kB / 397.4 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.0919, allocations: 88.25 kB / 397.5 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002496/0.09215, allocations: 0.5406 MB / 398 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.09227, allocations: 31.94 kB / 398 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.09229, allocations: 12 kB / 398 MB, free: 5.785 MB / 362.7 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 9.296e-05/0.09239, allocations: 145.8 kB / 398.2 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.09244, allocations: 15.91 kB / 398.2 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.09372, allocations: 1.495 MB / 399.7 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.09373, allocations: 19.97 kB / 399.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.09374, allocations: 3.938 kB / 399.7 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.09374, allocations: 7.984 kB / 399.7 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.0954, allocations: 1.983 MB / 401.7 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.09541, allocations: 3.938 kB / 401.7 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.09561, allocations: 75.92 kB / 401.8 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.09576, allocations: 72.73 kB / 401.9 MB, free: 1.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.09579, allocations: 24.11 kB / 401.9 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002177/0.09601, allocations: 0.5836 MB / 402.5 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.09601, allocations: 4.031 kB / 402.5 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.09741, allocations: 1.742 MB / 404.2 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.72e-05/0.09744, allocations: 43.67 kB / 404.3 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.09747, allocations: 15.94 kB / 404.3 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.09764, allocations: 24.02 kB / 404.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.09768, allocations: 39.81 kB / 404.3 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.0977, allocations: 15.98 kB / 404.3 MB, free: 15.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.314e-05/0.09774, allocations: 95.27 kB / 404.4 MB, free: 15.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.09774, allocations: 0 / 404.4 MB, free: 15.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001695/0.09943, allocations: 0.9747 MB / 405.4 MB, free: 14.26 MB / 378.7 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.004092/0.1035, allocations: 3.471 MB / 408.9 MB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007775/0.1043, allocations: 0.6124 MB / 409.5 MB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1043, allocations: 0 / 409.5 MB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005601/0.1049, allocations: 473.1 kB / 410 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.1053, allocations: 84.58 kB / 410 MB, free: 9.602 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.1093, allocations: 3.849 MB / 413.9 MB, free: 5.586 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.1095, allocations: 216.3 kB / 414.1 MB, free: 5.355 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.1097, allocations: 129.8 kB / 414.2 MB, free: 5.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.1099, allocations: 136.4 kB / 414.4 MB, free: 5.094 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.1099, allocations: 0 / 414.4 MB, free: 5.094 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1645/0.2743, allocations: 41.58 MB / 455.9 MB, free: 120.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.801/9.075, allocations: 3.844 kB / 455.9 MB, free: 120.1 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 10.929524035193026]