Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.0008793/0.0008793, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.000914/0.000914, allocations: 174 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.8612/0.8612, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.918e-05, allocations: 2.281 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01002/0.01004, allocations: 12.33 MB / 339.7 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.02005, allocations: 13.62 MB / 353.3 MB, free: 3.105 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.704e-05/0.02013, allocations: 4 kB / 353.3 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002729/0.0204, allocations: 75.52 kB / 353.3 MB, free: 3.027 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002538/0.02066, allocations: 119.1 kB / 353.5 MB, free: 2.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008579/0.02924, allocations: 6.003 MB / 359.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.0295, allocations: 362.3 kB / 359.8 MB, free: 12.56 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.02954, allocations: 5.812 kB / 359.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.02987, allocations: 267.1 kB / 360.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.631e-05/0.02997, allocations: 87.72 kB / 360.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.02998, allocations: 12 kB / 360.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005938/0.03592, allocations: 6.489 MB / 366.7 MB, free: 5.699 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.197e-05/0.03598, allocations: 47.81 kB / 366.7 MB, free: 5.652 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/0.03605, allocations: 83.81 kB / 366.8 MB, free: 5.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004161/0.04021, allocations: 4.981 MB / 371.8 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.04021, allocations: 0 / 371.8 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.04022, allocations: 3.938 kB / 371.8 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.04022, allocations: 0 / 371.8 MB, free: 0.5742 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001867/0.04209, allocations: 0.9423 MB / 372.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.04213, allocations: 12.03 kB / 372.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.04218, allocations: 54.72 kB / 372.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007095/0.04288, allocations: 180.6 kB / 373 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.04317, allocations: 201.4 kB / 373.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.04319, allocations: 16.88 kB / 373.2 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.04322, allocations: 20.38 kB / 373.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.04484, allocations: 0.9643 MB / 374.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.04485, allocations: 4 kB / 374.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.04487, allocations: 4 kB / 374.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.04488, allocations: 11.94 kB / 374.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.04646, allocations: 0.9542 MB / 375.1 MB, free: 13.12 MB / 346.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.0009097/0.04737, allocations: 0.9591 MB / 376.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.04864, allocations: 0.7207 MB / 376.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.0488, allocations: 161.6 kB / 377 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03306/0.08186, allocations: 20.61 MB / 397.6 MB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.0819, allocations: 42.55 kB / 397.6 MB, free: 6.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.934e-06/0.0819, allocations: 0 / 397.6 MB, free: 6.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002703/0.0846, allocations: 1.348 MB / 399 MB, free: 5.176 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.08463, allocations: 59.34 kB / 399 MB, free: 5.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.046e-05/0.08471, allocations: 133.8 kB / 399.2 MB, free: 4.965 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.08475, allocations: 29.7 kB / 399.2 MB, free: 4.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.0848, allocations: 116.9 kB / 399.3 MB, free: 4.809 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.119e-05/0.08489, allocations: 115 kB / 399.4 MB, free: 4.695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.08505, allocations: 169.5 kB / 399.6 MB, free: 4.523 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.08512, allocations: 323.2 kB / 399.9 MB, free: 4.199 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.0855, allocations: 339.8 kB / 400.2 MB, free: 3.867 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.08592, allocations: 403.5 kB / 400.6 MB, free: 3.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007983/0.08672, allocations: 0.7153 MB / 401.3 MB, free: 2.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.08672, allocations: 0 / 401.3 MB, free: 2.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001325/0.08804, allocations: 0.872 MB / 402.2 MB, free: 1.824 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.08806, allocations: 4 kB / 402.2 MB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.08807, allocations: 7.984 kB / 402.2 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.08809, allocations: 4 kB / 402.2 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.08839, allocations: 187.9 kB / 402.4 MB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.0884, allocations: 8 kB / 402.4 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.08855, allocations: 31.78 kB / 402.5 MB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.006e-05/0.08861, allocations: 59.94 kB / 402.5 MB, free: 1.527 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.08875, allocations: 145.7 kB / 402.7 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-05/0.08883, allocations: 11.95 kB / 402.7 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004978/0.09381, allocations: 8.511 MB / 411.2 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/0.09383, allocations: 27.95 kB / 411.2 MB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.09383, allocations: 3.938 kB / 411.2 MB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.09384, allocations: 3.984 kB / 411.2 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/0.09573, allocations: 3.718 MB / 414.9 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.09574, allocations: 0 / 414.9 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/0.09601, allocations: 107.8 kB / 415 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.09601, allocations: 4 kB / 415 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.09604, allocations: 15.98 kB / 415.1 MB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.09604, allocations: 0 / 415.1 MB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.09604, allocations: 7.938 kB / 415.1 MB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.09776, allocations: 1.889 MB / 417 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.0978, allocations: 67.34 kB / 417 MB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.09784, allocations: 15.98 kB / 417 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.09796, allocations: 8 kB / 417 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.445e-05/0.09802, allocations: 35.88 kB / 417.1 MB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.09805, allocations: 19.98 kB / 417.1 MB, free: 2.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.464e-05/0.09808, allocations: 99.27 kB / 417.2 MB, free: 2.551 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.09808, allocations: 0 / 417.2 MB, free: 2.551 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001854/0.09994, allocations: 1.002 MB / 418.2 MB, free: 1.547 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004322/0.1043, allocations: 3.622 MB / 421.8 MB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009314/0.1052, allocations: 0.8958 MB / 422.7 MB, free: 13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1052, allocations: 4 kB / 422.7 MB, free: 12.99 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006546/0.1058, allocations: 0.5244 MB / 423.2 MB, free: 12.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.1062, allocations: 84.2 kB / 423.3 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/0.1107, allocations: 4.643 MB / 428 MB, free: 7.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.1109, allocations: 259.1 kB / 428.2 MB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001095/0.112, allocations: 1.784 MB / 430 MB, free: 5.547 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.1123, allocations: 216.4 kB / 430.2 MB, free: 5.336 MB / 394.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1123, allocations: 0 / 430.2 MB, free: 5.336 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1729/0.2851, allocations: 47.23 MB / 477.4 MB, free: 92.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.113, allocations: 5.25 kB / 477.4 MB, free: 92.43 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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: 9.939004249870777]