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.001679/0.001679, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 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.002027/0.002027, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 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 1.4/1.4, allocations: 230.2 MB / 254.5 MB, free: 15.43 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001766/0.001766, allocations: 63.89 kB / 373.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09212/0.09388, allocations: 53.33 MB / 426.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01751/0.1114, allocations: 13.08 MB / 439.7 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2062/0.3176, allocations: 11.56 MB / 451.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.3177, allocations: 0 / 451.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.318, allocations: 73.88 kB / 451.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.3183, allocations: 86.33 kB / 451.4 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01313/0.3314, allocations: 5.075 MB / 456.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.3318, allocations: 238.2 kB / 456.7 MB, free: 7.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.297e-05/0.3319, allocations: 10.11 kB / 456.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004371/0.3323, allocations: 205.3 kB / 456.9 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.3324, allocations: 74.97 kB / 457 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.3325, allocations: 7.969 kB / 457 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01377/0.3462, allocations: 7.006 MB / 464 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.111e-05/0.3463, allocations: 25.58 kB / 464.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.3465, allocations: 75.05 kB / 464.1 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008632/0.3551, allocations: 3.878 MB / 468 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3551, allocations: 0 / 468 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3551, allocations: 0 / 468 MB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.3551, allocations: 0 / 468 MB, free: 5.352 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.004764/0.3599, allocations: 1.177 MB / 469.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3599, allocations: 10 kB / 469.2 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.248e-05/0.36, allocations: 48.02 kB / 469.2 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.3604, allocations: 49.67 kB / 469.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.3607, allocations: 224.2 kB / 469.5 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3607, allocations: 10.25 kB / 469.5 MB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.3608, allocations: 22.88 kB / 469.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3619, allocations: 389.5 kB / 469.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3619, allocations: 1.406 kB / 469.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.362, allocations: 5.375 kB / 469.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.362, allocations: 4.312 kB / 469.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3633, allocations: 361.7 kB / 470.3 MB, free: 3.73 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.00108/0.3643, allocations: 1.177 MB / 471.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007404/0.3651, allocations: 277.5 kB / 471.7 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.3653, allocations: 107.3 kB / 471.8 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.101/0.4663, allocations: 52.8 MB / 0.5123 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.5e-05/0.4663, allocations: 38.56 kB / 0.5124 GB, free: 14.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.4663, allocations: 0 / 0.5124 GB, free: 14.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00683/0.4732, allocations: 1.588 MB / 0.5139 GB, free: 12.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.4732, allocations: 110.8 kB / 0.514 GB, free: 12.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.4733, allocations: 118.5 kB / 0.5141 GB, free: 12.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.4734, allocations: 29.7 kB / 0.5142 GB, free: 12.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.517e-05/0.4735, allocations: 109 kB / 0.5143 GB, free: 12.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.4736, allocations: 126.5 kB / 0.5144 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.4737, allocations: 65.69 kB / 0.5145 GB, free: 12.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4739, allocations: 326.8 kB / 0.5148 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/0.4742, allocations: 143.6 kB / 0.5149 GB, free: 11.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.4747, allocations: 202.5 kB / 0.5151 GB, free: 11.58 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008052/0.4755, allocations: 357.1 kB / 0.5154 GB, free: 11.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.914e-06/0.4755, allocations: 4 kB / 0.5155 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001098/0.4766, allocations: 418 kB / 0.5158 GB, free: 10.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.4766, allocations: 8.219 kB / 0.5159 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.4766, allocations: 4 kB / 0.5159 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.4769, allocations: 40.83 kB / 0.5159 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.4774, allocations: 87.88 kB / 0.516 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004782/0.4779, allocations: 0.5445 MB / 0.5165 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.4782, allocations: 33.95 kB / 0.5165 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.4782, allocations: 16 kB / 0.5166 GB, free: 10.03 MB / 430.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.0001678/0.4784, allocations: 135.8 kB / 0.5167 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.4785, allocations: 19.89 kB / 0.5167 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.4807, allocations: 1.444 MB / 0.5181 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/0.4807, allocations: 19.97 kB / 0.5181 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.4808, allocations: 0 / 0.5181 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.4808, allocations: 7.984 kB / 0.5181 GB, free: 8.398 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.4839, allocations: 1.976 MB / 0.5201 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.4839, allocations: 0 / 0.5201 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.4843, allocations: 87.86 kB / 0.5202 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003131/0.4847, allocations: 68.73 kB / 0.5202 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.4847, allocations: 16.11 kB / 0.5202 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004445/0.4851, allocations: 0.5914 MB / 0.5208 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.4851, allocations: 0.875 kB / 0.5208 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.4875, allocations: 1.691 MB / 0.5225 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.4876, allocations: 136.6 kB / 0.5226 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.928e-05/0.4877, allocations: 12 kB / 0.5226 GB, free: 3.688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.488, allocations: 19.92 kB / 0.5226 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.4881, allocations: 39.89 kB / 0.5227 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-05/0.4881, allocations: 15.98 kB / 0.5227 GB, free: 3.613 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.4882, allocations: 91.22 kB / 0.5228 GB, free: 3.523 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4882, allocations: 4 kB / 0.5228 GB, free: 3.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003218/0.4914, allocations: 0.9669 MB / 0.5237 GB, free: 2.551 MB / 430.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.007998/0.4994, allocations: 3.291 MB / 0.5269 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.5009, allocations: 0.5809 MB / 0.5275 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5009, allocations: 0 / 0.5275 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008185/0.5017, allocations: 453.1 kB / 0.5279 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.5025, allocations: 87.72 kB / 0.528 GB, free: 14.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007839/0.5103, allocations: 3.915 MB / 0.5318 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.5107, allocations: 0.8216 MB / 0.5326 GB, free: 9.316 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.5111, allocations: 137.8 kB / 0.5328 GB, free: 9.184 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.5113, allocations: 131.4 kB / 0.5329 GB, free: 9.055 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5113, allocations: 0 / 0.5329 GB, free: 9.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08172/0.593, allocations: 40.65 MB / 0.5726 GB, free: 468 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.58, allocations: 11.86 kB / 0.5726 GB, free: 456 kB / 478.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 17.345179310068488]