Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001302/0.001302, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001425/0.001425, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.494/1.494, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2276/0.2276, allocations: 46.92 MB / 357.1 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.89 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1189, allocations: 65.99 MB / 0.5554 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03371/0.1526, allocations: 28.42 MB / 0.5831 GB, free: 9.344 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2621/0.4147, allocations: 13.33 MB / 0.5961 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.4149, allocations: 15.06 kB / 0.5962 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006498/0.4156, allocations: 247.2 kB / 0.5964 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00876/0.4244, allocations: 3.674 MB / 0.6 GB, free: 3.703 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005934/0.4303, allocations: 2.38 MB / 0.6023 GB, free: 3.645 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.4316, allocations: 0.8931 MB / 0.6032 GB, free: 3.645 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.4319, allocations: 215.2 kB / 0.6034 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007383/0.4326, allocations: 457.3 kB / 0.6038 GB, free: 3.629 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.433, allocations: 279.7 kB / 0.6041 GB, free: 3.625 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.4331, allocations: 32.91 kB / 0.6041 GB, free: 3.625 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01656/0.4496, allocations: 7.254 MB / 0.6112 GB, free: 3.559 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.4498, allocations: 108.1 kB / 0.6113 GB, free: 3.539 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.4502, allocations: 219.7 kB / 0.6115 GB, free: 3.484 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.4615, allocations: 4.422 MB / 0.6158 GB, free: 2.367 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4615, allocations: 3.094 kB / 0.6158 GB, free: 2.367 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4615, allocations: 4 kB / 0.6158 GB, free: 2.363 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.4615, allocations: 1.531 kB / 0.6158 GB, free: 2.363 MB / 446.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.003992/0.4655, allocations: 1.264 MB / 0.6171 GB, free: 1.504 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.4656, allocations: 12.38 kB / 0.6171 GB, free: 1.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.223e-05/0.4657, allocations: 70.41 kB / 0.6172 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.4675, allocations: 214.6 kB / 0.6174 GB, free: 1.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.468, allocations: 377.9 kB / 0.6177 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/0.468, allocations: 29.16 kB / 0.6177 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.4681, allocations: 30 kB / 0.6178 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.4696, allocations: 0.5777 MB / 0.6183 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.4696, allocations: 0.9688 kB / 0.6183 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.4697, allocations: 17.69 kB / 0.6184 GB, free: 0.832 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.4697, allocations: 8.266 kB / 0.6184 GB, free: 0.832 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.4712, allocations: 0.5352 MB / 0.6189 GB, free: 0.6914 MB / 446.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.003282/0.4745, allocations: 2.623 MB / 0.6214 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.4761, allocations: 438 kB / 0.6219 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004616/0.4766, allocations: 179.8 kB / 0.622 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05704/0.5336, allocations: 26.87 MB / 0.6483 GB, free: 5.785 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.523e-05/0.5337, allocations: 46.48 kB / 0.6483 GB, free: 5.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.234e-06/0.5337, allocations: 4 kB / 0.6483 GB, free: 5.727 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003261/0.5369, allocations: 0.7903 MB / 0.6491 GB, free: 4.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.537, allocations: 102.8 kB / 0.6492 GB, free: 4.805 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/0.5375, allocations: 308.6 kB / 0.6495 GB, free: 4.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.5375, allocations: 29.7 kB / 0.6495 GB, free: 4.465 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5377, allocations: 211.6 kB / 0.6497 GB, free: 4.258 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.5378, allocations: 95.22 kB / 0.6498 GB, free: 4.164 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.5379, allocations: 73.53 kB / 0.6499 GB, free: 4.09 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.5382, allocations: 336.4 kB / 0.6502 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.5386, allocations: 137.4 kB / 0.6503 GB, free: 3.621 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005499/0.5392, allocations: 246.7 kB / 0.6506 GB, free: 3.34 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008754/0.54, allocations: 357.3 kB / 0.6509 GB, free: 2.957 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.54, allocations: 0 / 0.6509 GB, free: 2.957 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001142/0.5412, allocations: 428.9 kB / 0.6513 GB, free: 2.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.5412, allocations: 5.875 kB / 0.6513 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.5412, allocations: 4.312 kB / 0.6513 GB, free: 2.523 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.5412, allocations: 15.88 kB / 0.6513 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003618/0.5416, allocations: 84.69 kB / 0.6514 GB, free: 2.426 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.5416, allocations: 4 kB / 0.6514 GB, free: 2.422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.542, allocations: 39.77 kB / 0.6515 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.542, allocations: 19.98 kB / 0.6515 GB, free: 2.363 MB / 478.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.000232/0.5422, allocations: 157.8 kB / 0.6516 GB, free: 2.199 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.5423, allocations: 39.75 kB / 0.6517 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002827/0.5452, allocations: 1.899 MB / 0.6535 GB, free: 268 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/0.5452, allocations: 31.89 kB / 0.6536 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5452, allocations: 0 / 0.6536 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.5452, allocations: 3.984 kB / 0.6536 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.5465, allocations: 1.012 MB / 0.6546 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5465, allocations: 4 kB / 0.6546 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.5469, allocations: 71.88 kB / 0.6546 GB, free: 15.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.5469, allocations: 4 kB / 0.6546 GB, free: 15.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.5469, allocations: 8 kB / 0.6546 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5469, allocations: 3.938 kB / 0.6546 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5469, allocations: 0 / 0.6546 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.5487, allocations: 1.085 MB / 0.6557 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.5489, allocations: 166.1 kB / 0.6559 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.49e-05/0.549, allocations: 27.78 kB / 0.6559 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.5493, allocations: 27.91 kB / 0.6559 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.5494, allocations: 31.95 kB / 0.6559 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.5494, allocations: 15.98 kB / 0.656 GB, free: 13.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004361/0.5499, allocations: 328.8 kB / 0.6563 GB, free: 13.38 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5499, allocations: 0 / 0.6563 GB, free: 13.38 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004442/0.5543, allocations: 1.014 MB / 0.6573 GB, free: 12.36 MB / 494.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.008701/0.563, allocations: 2.696 MB / 0.6599 GB, free: 9.742 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.5643, allocations: 0.5754 MB / 0.6605 GB, free: 9.168 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5643, allocations: 8 kB / 0.6605 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007024/0.565, allocations: 402.5 kB / 0.6608 GB, free: 8.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.5662, allocations: 220.9 kB / 0.6611 GB, free: 8.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.5763, allocations: 4.98 MB / 0.6659 GB, free: 3.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007114/0.577, allocations: 0.9599 MB / 0.6669 GB, free: 2.453 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005301/0.5775, allocations: 278.6 kB / 0.6671 GB, free: 2.188 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003705/0.5779, allocations: 259.3 kB / 0.6674 GB, free: 1.934 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5779, allocations: 0 / 0.6674 GB, free: 1.934 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09707/0.675, allocations: 46.67 MB / 0.713 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.17, allocations: 4 kB / 0.713 GB, free: 3.426 MB / 0.5294 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 15.705391481984407]