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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 117.6 kB / 17.08 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001525, allocations: 198.9 kB / 18.02 MB, free: 5.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2118/0.2118, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 73.45 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1055, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02998/0.1355, allocations: 28.13 MB / 0.516 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.15, allocations: 13.29 MB / 0.529 GB, free: 2.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.1503, allocations: 11.94 kB / 0.529 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007081/0.151, allocations: 246.4 kB / 0.5292 GB, free: 1.977 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2303/0.3814, allocations: 3.65 MB / 0.5328 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006099/0.3875, allocations: 2.36 MB / 0.5351 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.3887, allocations: 0.8832 MB / 0.536 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.3891, allocations: 253.9 kB / 0.5362 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007571/0.3899, allocations: 439.2 kB / 0.5366 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003479/0.3903, allocations: 269.1 kB / 0.5369 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.3903, allocations: 32.75 kB / 0.5369 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01605/0.4064, allocations: 7.23 MB / 0.544 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.4067, allocations: 101.5 kB / 0.5441 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004506/0.4071, allocations: 217 kB / 0.5443 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.4202, allocations: 4.402 MB / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4203, allocations: 0 / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4203, allocations: 0 / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.4203, allocations: 1.125 kB / 0.5486 GB, free: 4.664 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.004839/0.4252, allocations: 1.235 MB / 0.5498 GB, free: 3.941 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.4252, allocations: 12.64 kB / 0.5498 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.427, allocations: 207.3 kB / 0.55 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.4277, allocations: 383.9 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.4277, allocations: 28.44 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.872e-05/0.4278, allocations: 26.28 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.4293, allocations: 0.58 MB / 0.551 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.4294, allocations: 8.281 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.4294, allocations: 13.06 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.4294, allocations: 7.25 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.4311, allocations: 0.5294 MB / 0.5515 GB, free: 3.535 MB / 414.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.002737/0.4338, allocations: 2.619 MB / 0.5541 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.4354, allocations: 457.9 kB / 0.5545 GB, free: 1.398 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.4359, allocations: 196.3 kB / 0.5547 GB, free: 1.352 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05018/0.4861, allocations: 24.3 MB / 0.5784 GB, free: 14.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.4861, allocations: 39.84 kB / 0.5785 GB, free: 14.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.4862, allocations: 0 / 0.5785 GB, free: 14.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002995/0.4892, allocations: 0.7854 MB / 0.5792 GB, free: 13.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.4892, allocations: 110.8 kB / 0.5793 GB, free: 13.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.4896, allocations: 310 kB / 0.5796 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.4896, allocations: 37.58 kB / 0.5797 GB, free: 13.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.4898, allocations: 203.4 kB / 0.5799 GB, free: 13.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.859e-05/0.4899, allocations: 87.78 kB / 0.58 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.49, allocations: 70.75 kB / 0.58 GB, free: 13.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4901, allocations: 344.5 kB / 0.5803 GB, free: 12.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.4905, allocations: 136.6 kB / 0.5805 GB, free: 12.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.491, allocations: 231.3 kB / 0.5807 GB, free: 12.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.4918, allocations: 354.9 kB / 0.581 GB, free: 12.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4918, allocations: 3.281 kB / 0.581 GB, free: 12.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001/0.4928, allocations: 429.5 kB / 0.5814 GB, free: 11.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.4929, allocations: 8 kB / 0.5815 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4929, allocations: 2.188 kB / 0.5815 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.4929, allocations: 7.984 kB / 0.5815 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.4933, allocations: 85.11 kB / 0.5815 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.4933, allocations: 4 kB / 0.5816 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002995/0.4936, allocations: 43.34 kB / 0.5816 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.4936, allocations: 19.84 kB / 0.5816 GB, free: 11.65 MB / 446.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.0001788/0.4938, allocations: 168.2 kB / 0.5818 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.4939, allocations: 35.53 kB / 0.5818 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.4963, allocations: 1.894 MB / 0.5837 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/0.4963, allocations: 31.89 kB / 0.5837 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4963, allocations: 3.938 kB / 0.5837 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4963, allocations: 0 / 0.5837 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.4974, allocations: 1.016 MB / 0.5847 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4974, allocations: 6.906 kB / 0.5847 GB, free: 8.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.4977, allocations: 67.94 kB / 0.5848 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4977, allocations: 0 / 0.5848 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.4978, allocations: 12.73 kB / 0.5848 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4978, allocations: 7.406 kB / 0.5848 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4978, allocations: 0 / 0.5848 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.4993, allocations: 1.077 MB / 0.5858 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.4995, allocations: 159.9 kB / 0.586 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/0.4996, allocations: 24.62 kB / 0.586 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.4999, allocations: 35.91 kB / 0.586 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5, allocations: 31.95 kB / 0.5861 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-05/0.5001, allocations: 8 kB / 0.5861 GB, free: 7.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003893/0.5005, allocations: 327.1 kB / 0.5864 GB, free: 7.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5005, allocations: 0 / 0.5864 GB, free: 7.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004327/0.5048, allocations: 0.9877 MB / 0.5873 GB, free: 6.102 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.007334/0.5122, allocations: 1.178 MB / 0.5885 GB, free: 5.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.5137, allocations: 0.5936 MB / 0.5891 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.5137, allocations: 0 / 0.5891 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.5145, allocations: 0.5104 MB / 0.5896 GB, free: 3.945 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5159, allocations: 218.9 kB / 0.5898 GB, free: 3.734 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.5184, allocations: 1.533 MB / 0.5913 GB, free: 2.172 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.519, allocations: 0.9677 MB / 0.5922 GB, free: 1.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.5192, allocations: 43.44 kB / 0.5923 GB, free: 1.137 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5192, allocations: 0 / 0.5923 GB, free: 1.137 MB / 446.1 MB Notification: Performance of Templates: time 0.03761/0.5568, allocations: 24.07 MB / 0.6158 GB, free: 9.09 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) 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) Reference file matches