Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8702/0.8702, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.442e-05/1.606e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009557/0.009573, allocations: 11.93 MB / 336.4 MB, free: 3.922 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007651/0.01722, allocations: 10.12 MB / 346.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.54e-05/0.01729, allocations: 4 kB / 346.5 MB, free: 9.754 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.01757, allocations: 63.53 kB / 346.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.01782, allocations: 83.31 kB / 346.7 MB, free: 9.609 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008816/0.02664, allocations: 5.108 MB / 351.8 MB, free: 4.504 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.02687, allocations: 234.8 kB / 352 MB, free: 4.273 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.566e-05/0.02692, allocations: 9.625 kB / 352 MB, free: 4.258 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.02724, allocations: 219.3 kB / 352.2 MB, free: 4.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.049e-05/0.02732, allocations: 63.8 kB / 352.3 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.02733, allocations: 12 kB / 352.3 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006868/0.0342, allocations: 6.688 MB / 359 MB, free: 13.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.03426, allocations: 27.91 kB / 359 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.206e-05/0.03434, allocations: 55.91 kB / 359.1 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006153/0.04049, allocations: 4.989 MB / 364.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.04049, allocations: 0 / 364.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.04049, allocations: 0 / 364.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.177e-06/0.0405, allocations: 0 / 364.1 MB, free: 8.191 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.003106/0.0436, allocations: 1.095 MB / 365.2 MB, free: 7.062 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.04365, allocations: 11.98 kB / 365.2 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002179/0.04387, allocations: 50.73 kB / 365.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.04417, allocations: 52.84 kB / 365.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.04443, allocations: 161.5 kB / 365.4 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.04445, allocations: 12.66 kB / 365.5 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.04449, allocations: 16.38 kB / 365.5 MB, free: 6.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006811/0.04517, allocations: 441 kB / 365.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.04518, allocations: 3.938 kB / 365.9 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.04521, allocations: 12 kB / 365.9 MB, free: 6.242 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.04521, allocations: 4 kB / 365.9 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.0459, allocations: 355.5 kB / 366.3 MB, free: 5.891 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.0008497/0.04675, allocations: 1.036 MB / 367.3 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.04719, allocations: 271.8 kB / 367.6 MB, free: 4.492 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.04733, allocations: 110.5 kB / 367.7 MB, free: 4.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04189/0.08921, allocations: 26.09 MB / 393.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.08925, allocations: 34.56 kB / 393.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.824e-06/0.08925, allocations: 0 / 393.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003687/0.09294, allocations: 1.495 MB / 395.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.09298, allocations: 110.8 kB / 395.4 MB, free: 8.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.412e-05/0.09306, allocations: 129.7 kB / 395.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.09309, allocations: 29.7 kB / 395.6 MB, free: 8.371 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.649e-05/0.09313, allocations: 104.6 kB / 395.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.0932, allocations: 126.9 kB / 395.8 MB, free: 8.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.638e-05/0.09327, allocations: 65.69 kB / 395.9 MB, free: 8.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.384e-05/0.09335, allocations: 326.8 kB / 396.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.09356, allocations: 139.7 kB / 396.3 MB, free: 7.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.09379, allocations: 194.8 kB / 396.5 MB, free: 7.391 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.09424, allocations: 350.6 kB / 396.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.09424, allocations: 0 / 396.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005986/0.09484, allocations: 433.9 kB / 397.3 MB, free: 6.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.09485, allocations: 8.219 kB / 397.3 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.09486, allocations: 4 kB / 397.3 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.09501, allocations: 36.83 kB / 397.3 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.09523, allocations: 87.88 kB / 397.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002626/0.0955, allocations: 0.5449 MB / 397.9 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.09562, allocations: 27.95 kB / 398 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.09564, allocations: 28.08 kB / 398 MB, free: 5.828 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 0.0001219/0.09577, allocations: 133.7 kB / 398.1 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.343e-05/0.09582, allocations: 19.84 kB / 398.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.0972, allocations: 1.498 MB / 399.7 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-05/0.09721, allocations: 15.97 kB / 399.7 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.09722, allocations: 15.91 kB / 399.7 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.09723, allocations: 0 / 399.7 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.09926, allocations: 1.983 MB / 401.7 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.09926, allocations: 0 / 401.7 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.09948, allocations: 79.86 kB / 401.7 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.09965, allocations: 72.92 kB / 401.8 MB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.09968, allocations: 19.98 kB / 401.8 MB, free: 1.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002513/0.09993, allocations: 0.5914 MB / 402.4 MB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09993, allocations: 0 / 402.4 MB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.1013, allocations: 1.742 MB / 404.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.1013, allocations: 51.67 kB / 404.2 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.1013, allocations: 12 kB / 404.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.1015, allocations: 19.97 kB / 404.2 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.1015, allocations: 35.88 kB / 404.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1016, allocations: 19.98 kB / 404.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.472e-05/0.1016, allocations: 95.2 kB / 404.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1016, allocations: 0 / 404.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002049/0.1036, allocations: 0.9708 MB / 405.4 MB, free: 14.32 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.004229/0.1079, allocations: 3.461 MB / 408.8 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007891/0.1087, allocations: 0.6162 MB / 409.4 MB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1087, allocations: 0 / 409.4 MB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.1091, allocations: 469.1 kB / 409.9 MB, free: 9.742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.1096, allocations: 84.64 kB / 410 MB, free: 9.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003845/0.1134, allocations: 3.852 MB / 413.8 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.1135, allocations: 208.3 kB / 414 MB, free: 5.418 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.1138, allocations: 141 kB / 414.2 MB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.1139, allocations: 132.4 kB / 414.3 MB, free: 5.152 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1139, allocations: 0 / 414.3 MB, free: 5.152 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1959/0.3099, allocations: 41.57 MB / 455.9 MB, free: 120.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.369/9.679, allocations: 6.219 kB / 455.9 MB, free: 120.1 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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.00019992 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.csv","/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_trunk_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: 11.623316336423159]