Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 117.6 kB / 17.09 MB, free: 5.988 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.001668/0.001668, allocations: 195 kB / 18.01 MB, free: 5.074 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.419/1.419, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2043/0.2043, allocations: 43.52 MB / 314.8 MB, free: 460 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.001464/0.001464, allocations: 75.89 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09834, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02815/0.1265, allocations: 28.13 MB / 0.516 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.1414, allocations: 13.31 MB / 0.529 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.1417, allocations: 11.94 kB / 0.529 GB, free: 2.207 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006826/0.1424, allocations: 250.4 kB / 0.5293 GB, free: 1.961 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2181/0.3606, allocations: 3.646 MB / 0.5328 GB, free: 4.855 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006332/0.3669, allocations: 2.363 MB / 0.5351 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.3681, allocations: 0.8966 MB / 0.536 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003864/0.3685, allocations: 252.5 kB / 0.5362 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.3693, allocations: 447.8 kB / 0.5367 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.3696, allocations: 266.6 kB / 0.5369 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.3697, allocations: 38.34 kB / 0.537 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01435/0.3841, allocations: 7.221 MB / 0.544 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.3843, allocations: 99.02 kB / 0.5441 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.3848, allocations: 220.6 kB / 0.5443 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.3961, allocations: 4.411 MB / 0.5486 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3961, allocations: 0 / 0.5486 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3961, allocations: 4 kB / 0.5486 GB, free: 4.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.3961, allocations: 1.281 kB / 0.5486 GB, free: 4.652 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.004022/0.4002, allocations: 1.237 MB / 0.5498 GB, free: 3.934 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.4002, allocations: 13.77 kB / 0.5498 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001808/0.402, allocations: 215.8 kB / 0.5501 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.4025, allocations: 379 kB / 0.5504 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.4026, allocations: 29.94 kB / 0.5504 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.4026, allocations: 27.25 kB / 0.5505 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.4042, allocations: 0.5957 MB / 0.551 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4042, allocations: 3.875 kB / 0.5511 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.443e-05/0.4043, allocations: 13.62 kB / 0.5511 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4043, allocations: 9.375 kB / 0.5511 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.406, allocations: 0.5448 MB / 0.5516 GB, free: 3.523 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.002797/0.4088, allocations: 2.627 MB / 0.5542 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.4105, allocations: 472.1 kB / 0.5546 GB, free: 1.367 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004733/0.411, allocations: 204.5 kB / 0.5548 GB, free: 1.316 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05023/0.4612, allocations: 24.29 MB / 0.5785 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.4613, allocations: 39.25 kB / 0.5786 GB, free: 14.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 3.676e-06/0.4613, allocations: 0 / 0.5786 GB, free: 14.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003149/0.4645, allocations: 0.8214 MB / 0.5794 GB, free: 13.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.4646, allocations: 110.8 kB / 0.5795 GB, free: 13.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.4649, allocations: 313.4 kB / 0.5798 GB, free: 13.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.465, allocations: 35.89 kB / 0.5798 GB, free: 13.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.4651, allocations: 198.8 kB / 0.58 GB, free: 13.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.79e-05/0.4652, allocations: 81.31 kB / 0.5801 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4653, allocations: 69.81 kB / 0.5801 GB, free: 12.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4655, allocations: 345.3 kB / 0.5805 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.4659, allocations: 147.3 kB / 0.5806 GB, free: 12.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/0.4664, allocations: 242.7 kB / 0.5808 GB, free: 12.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008591/0.4673, allocations: 373 kB / 0.5812 GB, free: 11.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4673, allocations: 1.969 kB / 0.5812 GB, free: 11.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001096/0.4684, allocations: 452.5 kB / 0.5816 GB, free: 11.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.4684, allocations: 8 kB / 0.5816 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4685, allocations: 4 kB / 0.5816 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.4685, allocations: 7.938 kB / 0.5817 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.4689, allocations: 90.66 kB / 0.5817 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.4689, allocations: 7.469 kB / 0.5817 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.4692, allocations: 51.33 kB / 0.5818 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.4693, allocations: 20.22 kB / 0.5818 GB, free: 11.48 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: 4 (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.0002048/0.4695, allocations: 159.7 kB / 0.582 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.172e-05/0.4696, allocations: 35.61 kB / 0.582 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002433/0.472, allocations: 1.92 MB / 0.5839 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.993e-05/0.4721, allocations: 31.89 kB / 0.5839 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4721, allocations: 0.5 kB / 0.5839 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.4721, allocations: 3.984 kB / 0.5839 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.4731, allocations: 1.013 MB / 0.5849 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.4731, allocations: 3.625 kB / 0.5849 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.4735, allocations: 83.02 kB / 0.585 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.4735, allocations: 4 kB / 0.585 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.4735, allocations: 4 kB / 0.585 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.4735, allocations: 7.938 kB / 0.585 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4735, allocations: 0 / 0.585 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.4751, allocations: 1.092 MB / 0.5861 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.4752, allocations: 167.8 kB / 0.5862 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.205e-05/0.4753, allocations: 23.69 kB / 0.5863 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.4756, allocations: 31.91 kB / 0.5863 GB, free: 7.219 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.4758, allocations: 39.14 kB / 0.5863 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.4758, allocations: 15.98 kB / 0.5863 GB, free: 7.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003679/0.4762, allocations: 323.1 kB / 0.5866 GB, free: 6.855 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.474e-06/0.4762, allocations: 0 / 0.5866 GB, free: 6.855 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003861/0.48, allocations: 0.9954 MB / 0.5876 GB, free: 5.859 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: 18 ($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) * 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.005655/0.4857, allocations: 1.166 MB / 0.5888 GB, free: 4.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.4871, allocations: 0.6076 MB / 0.5893 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4872, allocations: 0 / 0.5893 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.4879, allocations: 0.5246 MB / 0.5899 GB, free: 3.688 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.4891, allocations: 222.5 kB / 0.5901 GB, free: 3.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.4913, allocations: 1.55 MB / 0.5916 GB, free: 1.902 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.4918, allocations: 0.9599 MB / 0.5925 GB, free: 0.918 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.4919, allocations: 43.44 kB / 0.5926 GB, free: 0.875 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4919, allocations: 0 / 0.5926 GB, free: 0.875 MB / 446.1 MB Notification: Performance of Templates: time 0.03643/0.5284, allocations: 24.12 MB / 0.6161 GB, free: 8.781 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches