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.0008657/0.0008657, allocations: 80.48 kB / 19.92 MB, free: 4.633 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.00117/0.00117, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.9034/0.9034, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1379/0.1379, allocations: 32.36 MB / 269.6 MB, free: 14.96 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.124e-05/2.277e-05, allocations: 5.938 kB / 406.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02096/0.02098, allocations: 25.64 MB / 432.5 MB, free: 3.781 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.1836/0.2045, allocations: 11.76 MB / 444.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004112/0.2049, allocations: 18.53 kB / 444.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007466/0.2057, allocations: 227.2 kB / 444.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01054/0.2162, allocations: 3.685 MB / 448.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005591/0.2218, allocations: 2.384 MB / 450.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.2231, allocations: 0.9058 MB / 451.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.2235, allocations: 203.8 kB / 451.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009238/0.2245, allocations: 0.545 MB / 452.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.2248, allocations: 229.7 kB / 452.4 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.2248, allocations: 33.75 kB / 452.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/0.2366, allocations: 6.914 MB / 459.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.2368, allocations: 97.89 kB / 459.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003942/0.2372, allocations: 154.8 kB / 459.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.2486, allocations: 5.534 MB / 465.2 MB, free: 8.504 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2486, allocations: 4 kB / 465.2 MB, free: 8.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2486, allocations: 0 / 465.2 MB, free: 8.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.2486, allocations: 0 / 465.2 MB, free: 8.5 MB / 362.7 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.002836/0.2514, allocations: 1.176 MB / 466.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.2515, allocations: 8.562 kB / 466.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.2515, allocations: 69.75 kB / 466.4 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.2526, allocations: 211.4 kB / 466.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005423/0.2531, allocations: 313.9 kB / 466.9 MB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.2531, allocations: 28.84 kB / 467 MB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.2532, allocations: 25.88 kB / 467 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008998/0.2541, allocations: 0.7347 MB / 467.7 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2541, allocations: 3.188 kB / 467.7 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.2541, allocations: 21.66 kB / 467.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.2541, allocations: 7.312 kB / 467.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.2549, allocations: 0.523 MB / 468.3 MB, free: 6.426 MB / 362.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.001741/0.2567, allocations: 1.889 MB / 470.2 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008504/0.2575, allocations: 449.1 kB / 470.6 MB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.2578, allocations: 178.3 kB / 470.8 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02155/0.2793, allocations: 12.72 MB / 483.5 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.2793, allocations: 38.56 kB / 483.5 MB, free: 9.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.495e-06/0.2793, allocations: 4 kB / 483.5 MB, free: 9.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001643/0.281, allocations: 0.7849 MB / 484.3 MB, free: 8.223 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.281, allocations: 106.8 kB / 484.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.2813, allocations: 320.4 kB / 484.7 MB, free: 7.773 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.2813, allocations: 29.7 kB / 484.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2815, allocations: 215.6 kB / 485 MB, free: 7.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.2815, allocations: 87.27 kB / 485.1 MB, free: 7.441 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.921e-05/0.2816, allocations: 61.69 kB / 485.1 MB, free: 7.375 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.2817, allocations: 346.8 kB / 485.5 MB, free: 7.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.2819, allocations: 135.9 kB / 485.6 MB, free: 6.895 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.2822, allocations: 290.7 kB / 485.9 MB, free: 6.562 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004402/0.2826, allocations: 364.8 kB / 486.2 MB, free: 6.184 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2826, allocations: 0 / 486.2 MB, free: 6.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005973/0.2832, allocations: 428.9 kB / 486.6 MB, free: 5.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.2832, allocations: 8 kB / 486.7 MB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2832, allocations: 0 / 486.7 MB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.2832, allocations: 4 kB / 486.7 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.2834, allocations: 83.88 kB / 486.7 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.2834, allocations: 4.312 kB / 486.7 MB, free: 5.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.2838, allocations: 51.69 kB / 486.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.2838, allocations: 16 kB / 486.8 MB, free: 5.594 MB / 378.7 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.0001691/0.284, allocations: 159 kB / 487 MB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.2841, allocations: 35.77 kB / 487 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.2857, allocations: 1.992 MB / 489 MB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.2858, allocations: 31.89 kB / 489 MB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.2858, allocations: 0 / 489 MB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.2858, allocations: 7.922 kB / 489 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009546/0.2867, allocations: 0.965 MB / 490 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.2867, allocations: 1.219 kB / 490 MB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.2869, allocations: 71.88 kB / 490.1 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.2869, allocations: 4 kB / 490.1 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.2869, allocations: 8 kB / 490.1 MB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.2869, allocations: 0 / 490.1 MB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.287, allocations: 0 / 490.1 MB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.288, allocations: 1.123 MB / 491.2 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.2882, allocations: 94.45 kB / 491.3 MB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.2882, allocations: 19.84 kB / 491.3 MB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.2883, allocations: 23.92 kB / 491.3 MB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-05/0.2884, allocations: 35.94 kB / 491.4 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.2885, allocations: 23.86 kB / 491.4 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002921/0.2888, allocations: 327.1 kB / 491.7 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2888, allocations: 0 / 491.7 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00297/0.2917, allocations: 1.002 MB / 492.7 MB, free: 15.63 MB / 394.7 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.005507/0.2972, allocations: 2.867 MB / 495.6 MB, free: 12.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000922/0.2981, allocations: 0.5881 MB / 496.2 MB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2982, allocations: 0 / 496.2 MB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.2985, allocations: 425.5 kB / 496.6 MB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.2993, allocations: 226.6 kB / 496.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006231/0.3055, allocations: 4.989 MB / 0.49 GB, free: 6.477 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.3057, allocations: 366.2 kB / 0.4904 GB, free: 6.094 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.3061, allocations: 274.8 kB / 0.4907 GB, free: 5.824 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.3063, allocations: 256.4 kB / 0.4909 GB, free: 5.574 MB / 394.7 MB Notification: Performance of SimCode: time 1.363e-06/0.3063, allocations: 0 / 0.4909 GB, free: 5.574 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05918/0.3655, allocations: 48.02 MB / 0.5378 GB, free: 5.488 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.694, allocations: 3.938 kB / 0.5378 GB, free: 5.484 MB / 442.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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: 11.076110666617751]