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.00134/0.00134, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.001398/0.001398, allocations: 214.2 kB / 21.46 MB, free: 1.605 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.402/1.402, allocations: 230.4 MB / 254.7 MB, free: 15.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.89 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.0982, allocations: 53.37 MB / 427 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1861/0.2843, allocations: 13.07 MB / 440.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.2969, allocations: 11.57 MB / 451.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.297, allocations: 1.031 kB / 451.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.2974, allocations: 72.97 kB / 451.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003172/0.2977, allocations: 85.98 kB / 451.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01498/0.3127, allocations: 5.09 MB / 456.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.3131, allocations: 241 kB / 457.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.412e-05/0.3131, allocations: 5.016 kB / 457.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004175/0.3136, allocations: 205.3 kB / 457.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.3137, allocations: 72.12 kB / 457.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.3137, allocations: 7.688 kB / 457.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01398/0.3277, allocations: 7.008 MB / 464.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.59e-05/0.3278, allocations: 22.45 kB / 464.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.3279, allocations: 77.39 kB / 464.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009276/0.3372, allocations: 3.874 MB / 468.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3372, allocations: 0 / 468.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3372, allocations: 0 / 468.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3372, allocations: 1.375 kB / 468.4 MB, free: 4.055 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.005575/0.3428, allocations: 1.172 MB / 469.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3428, allocations: 9.875 kB / 469.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.489e-05/0.3428, allocations: 4.375 kB / 469.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.95e-05/0.3429, allocations: 55.39 kB / 469.7 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004847/0.3434, allocations: 49.75 kB / 469.7 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.3437, allocations: 220.7 kB / 469.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.3438, allocations: 19.5 kB / 469.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.3438, allocations: 24.42 kB / 470 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.3451, allocations: 374.2 kB / 470.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3451, allocations: 1.75 kB / 470.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.3452, allocations: 10.25 kB / 470.4 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.3452, allocations: 7.812 kB / 470.4 MB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.3467, allocations: 353.3 kB / 470.7 MB, free: 2.43 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.001522/0.3482, allocations: 1.185 MB / 471.9 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008766/0.3491, allocations: 272.3 kB / 472.2 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.3493, allocations: 111 kB / 472.3 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1049/0.4543, allocations: 52.78 MB / 0.5127 GB, free: 7.891 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.4543, allocations: 43.11 kB / 0.5128 GB, free: 7.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.963e-06/0.4543, allocations: 3.938 kB / 0.5128 GB, free: 7.836 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006939/0.4613, allocations: 1.588 MB / 0.5143 GB, free: 6.195 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.4613, allocations: 106.8 kB / 0.5144 GB, free: 6.066 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.4614, allocations: 125.7 kB / 0.5146 GB, free: 5.934 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.4615, allocations: 29.7 kB / 0.5146 GB, free: 5.898 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.4615, allocations: 104.6 kB / 0.5147 GB, free: 5.793 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.4616, allocations: 127 kB / 0.5148 GB, free: 5.668 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.4618, allocations: 69.61 kB / 0.5149 GB, free: 5.594 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4619, allocations: 330.8 kB / 0.5152 GB, free: 5.262 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.4623, allocations: 131.7 kB / 0.5153 GB, free: 5.133 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.4628, allocations: 202.5 kB / 0.5155 GB, free: 4.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008499/0.4636, allocations: 355.1 kB / 0.5158 GB, free: 4.539 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4636, allocations: 4 kB / 0.5158 GB, free: 4.535 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001102/0.4647, allocations: 423.8 kB / 0.5163 GB, free: 4.113 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4648, allocations: 10.66 kB / 0.5163 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.4648, allocations: 0 / 0.5163 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.465, allocations: 36.84 kB / 0.5163 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.4655, allocations: 87.88 kB / 0.5164 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000414/0.4659, allocations: 0.5544 MB / 0.5169 GB, free: 3.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.4661, allocations: 20.02 kB / 0.5169 GB, free: 3.383 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.4662, allocations: 19.98 kB / 0.517 GB, free: 3.363 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.000148/0.4663, allocations: 133.8 kB / 0.5171 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-05/0.4664, allocations: 20 kB / 0.5171 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/0.4686, allocations: 1.435 MB / 0.5185 GB, free: 1.758 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.4687, allocations: 24.83 kB / 0.5185 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4687, allocations: 0 / 0.5185 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.4687, allocations: 4.375 kB / 0.5185 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003008/0.4717, allocations: 1.975 MB / 0.5205 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4717, allocations: 0 / 0.5205 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004415/0.4721, allocations: 87.86 kB / 0.5206 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.4724, allocations: 76.8 kB / 0.5206 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.4725, allocations: 11.98 kB / 0.5206 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003981/0.4729, allocations: 0.5913 MB / 0.5212 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4729, allocations: 0 / 0.5212 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.4752, allocations: 1.699 MB / 0.5229 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.4753, allocations: 124.6 kB / 0.523 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.4753, allocations: 16 kB / 0.523 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003577/0.4757, allocations: 27.95 kB / 0.523 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.968e-05/0.4758, allocations: 31.91 kB / 0.5231 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.4758, allocations: 19.92 kB / 0.5231 GB, free: 12.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.3e-05/0.4759, allocations: 91.27 kB / 0.5232 GB, free: 12.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4759, allocations: 0 / 0.5232 GB, free: 12.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003359/0.4792, allocations: 0.9747 MB / 0.5241 GB, free: 11.86 MB / 446.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.008112/0.4874, allocations: 3.286 MB / 0.5273 GB, free: 8.543 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.4889, allocations: 0.5848 MB / 0.5279 GB, free: 7.961 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.4889, allocations: 0 / 0.5279 GB, free: 7.961 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.4897, allocations: 457.3 kB / 0.5283 GB, free: 7.512 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007859/0.4905, allocations: 78.86 kB / 0.5284 GB, free: 7.438 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008316/0.4988, allocations: 3.914 MB / 0.5322 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.4993, allocations: 0.8216 MB / 0.533 GB, free: 2.527 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.4996, allocations: 133.7 kB / 0.5332 GB, free: 2.395 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.4999, allocations: 131.4 kB / 0.5333 GB, free: 2.266 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4999, allocations: 0 / 0.5333 GB, free: 2.266 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07979/0.5797, allocations: 40.7 MB / 0.573 GB, free: 9.625 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.51, allocations: 8.172 kB / 0.573 GB, free: 9.617 MB / 494.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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: 17.50428018096136]