Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.001765/0.001765, allocations: 104.3 kB / 19.69 MB, free: 1.945 MB / 14.72 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.002135/0.002135, allocations: 222.1 kB / 23 MB, free: 4.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 207.7 MB / 233.8 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2232/0.2232, allocations: 44.26 MB / 330.3 MB, free: 9.316 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002577/0.002577, allocations: 64.47 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1356, allocations: 61.05 MB / 0.5162 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.271/0.4066, allocations: 25.76 MB / 0.5413 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.4218, allocations: 11.77 MB / 0.5528 GB, free: 8.641 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004287/0.4222, allocations: 17.72 kB / 0.5528 GB, free: 8.629 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007603/0.423, allocations: 221.9 kB / 0.553 GB, free: 8.539 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.434, allocations: 3.63 MB / 0.5566 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007704/0.4417, allocations: 2.346 MB / 0.5589 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.4432, allocations: 0.9011 MB / 0.5598 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004523/0.4436, allocations: 218.1 kB / 0.56 GB, free: 6.621 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.4448, allocations: 433.5 kB / 0.5604 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004807/0.4453, allocations: 261.8 kB / 0.5606 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.123e-05/0.4454, allocations: 33.66 kB / 0.5607 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01864/0.464, allocations: 6.895 MB / 0.5674 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003761/0.4644, allocations: 105.8 kB / 0.5675 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005754/0.465, allocations: 181.1 kB / 0.5677 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.4811, allocations: 4.406 MB / 0.572 GB, free: 1.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.4812, allocations: 0 / 0.572 GB, free: 1.598 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4812, allocations: 0 / 0.572 GB, free: 1.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.179e-05/0.4812, allocations: 5.094 kB / 0.572 GB, free: 1.594 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004865/0.486, allocations: 1.182 MB / 0.5731 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4861, allocations: 14.33 kB / 0.5731 GB, free: 0.75 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.92e-05/0.4862, allocations: 60.8 kB / 0.5732 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.4879, allocations: 222 kB / 0.5734 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006493/0.4886, allocations: 315.1 kB / 0.5737 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.4886, allocations: 26.81 kB / 0.5737 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.4887, allocations: 27.84 kB / 0.5738 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.4904, allocations: 0.7364 MB / 0.5745 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.4904, allocations: 1.219 kB / 0.5745 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.4904, allocations: 12.09 kB / 0.5745 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.4904, allocations: 7.594 kB / 0.5745 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.4922, allocations: 0.5298 MB / 0.575 GB, free: 15.47 MB / 430.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.003377/0.4956, allocations: 1.905 MB / 0.5769 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.4973, allocations: 442.1 kB / 0.5773 GB, free: 13.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004754/0.4977, allocations: 177.1 kB / 0.5775 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04668/0.5444, allocations: 12.72 MB / 0.5899 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.5445, allocations: 38.56 kB / 0.5899 GB, free: 6.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=25): time 2.264e-06/0.5445, allocations: 0 / 0.5899 GB, free: 6.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=25): time 0.002993/0.5475, allocations: 0.8013 MB / 0.5907 GB, free: 6.176 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.658e-05/0.5476, allocations: 102.8 kB / 0.5908 GB, free: 6.051 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.548, allocations: 312.5 kB / 0.5911 GB, free: 5.742 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.548, allocations: 29.7 kB / 0.5911 GB, free: 5.707 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.5482, allocations: 212.5 kB / 0.5913 GB, free: 5.496 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.513e-05/0.5483, allocations: 87.28 kB / 0.5914 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.5484, allocations: 69.64 kB / 0.5915 GB, free: 5.336 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.5486, allocations: 346.8 kB / 0.5918 GB, free: 4.988 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.549, allocations: 139.8 kB / 0.592 GB, free: 4.852 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005388/0.5496, allocations: 284.3 kB / 0.5922 GB, free: 4.523 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.5504, allocations: 362 kB / 0.5926 GB, free: 4.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.5504, allocations: 4 kB / 0.5926 GB, free: 4.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001058/0.5515, allocations: 421.8 kB / 0.593 GB, free: 3.715 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5515, allocations: 8 kB / 0.593 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.5515, allocations: 4 kB / 0.593 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.5516, allocations: 7.938 kB / 0.593 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003395/0.5519, allocations: 80.2 kB / 0.5931 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.5519, allocations: 7.984 kB / 0.5931 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.5523, allocations: 53.55 kB / 0.5931 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.5523, allocations: 15.98 kB / 0.5931 GB, free: 3.543 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002232/0.5525, allocations: 158 kB / 0.5933 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.091e-05/0.5526, allocations: 31.81 kB / 0.5933 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002898/0.5555, allocations: 1.981 MB / 0.5953 GB, free: 1.355 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.132e-05/0.5555, allocations: 35.89 kB / 0.5953 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5556, allocations: 3.188 kB / 0.5953 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.5556, allocations: 3.984 kB / 0.5953 GB, free: 1.316 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.5568, allocations: 0.9642 MB / 0.5962 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.5568, allocations: 0 / 0.5962 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.5571, allocations: 71.88 kB / 0.5963 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.5571, allocations: 0 / 0.5963 GB, free: 248 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.5571, allocations: 8 kB / 0.5963 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.5571, allocations: 7.938 kB / 0.5963 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5571, allocations: 0 / 0.5963 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.5588, allocations: 1.108 MB / 0.5974 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.5589, allocations: 83.22 kB / 0.5975 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.559, allocations: 34.77 kB / 0.5975 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.5592, allocations: 27.92 kB / 0.5976 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5593, allocations: 35.94 kB / 0.5976 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.5594, allocations: 11.98 kB / 0.5976 GB, free: 14.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.5598, allocations: 327.1 kB / 0.5979 GB, free: 14.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5598, allocations: 0 / 0.5979 GB, free: 14.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004319/0.5641, allocations: 1.002 MB / 0.5989 GB, free: 13.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.008814/0.5729, allocations: 2.73 MB / 0.6016 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.5743, allocations: 0.5965 MB / 0.6021 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5743, allocations: 0 / 0.6021 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007118/0.575, allocations: 421 kB / 0.6025 GB, free: 9.844 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.5764, allocations: 216.7 kB / 0.6027 GB, free: 9.637 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.5867, allocations: 5.016 MB / 0.6076 GB, free: 4.473 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.5871, allocations: 370.2 kB / 0.608 GB, free: 4.086 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005809/0.5877, allocations: 273.7 kB / 0.6083 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.588, allocations: 259.3 kB / 0.6085 GB, free: 3.57 MB / 446.1 MB Notification: Performance of SimCode: time 1.343e-06/0.588, allocations: 3.938 kB / 0.6085 GB, free: 3.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/0.6946, allocations: 47.8 MB / 0.6552 GB, free: 3.699 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/14.39, allocations: 3.859 kB / 0.6552 GB, free: 3.695 MB / 494.1 MB " [Timeout remaining time 645] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.906377614010125]