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.001192/0.001192, allocations: 111.6 kB / 16.41 MB, free: 6.492 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.0009494/0.0009495, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.253/1.253, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.1982/0.1982, allocations: 43.53 MB / 314.1 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.001472/0.001472, allocations: 67.91 kB / 441.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03124/0.1461, allocations: 28.13 MB / 0.5154 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.1619, allocations: 13.31 MB / 0.5284 GB, free: 2.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004206/0.1623, allocations: 7.938 kB / 0.5284 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009654/0.1633, allocations: 254.4 kB / 0.5286 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2251/0.3885, allocations: 3.645 MB / 0.5322 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005671/0.3941, allocations: 2.373 MB / 0.5345 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.3952, allocations: 0.8979 MB / 0.5354 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003615/0.3955, allocations: 248.9 kB / 0.5356 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007325/0.3963, allocations: 444.9 kB / 0.536 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.3966, allocations: 269.6 kB / 0.5363 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.213e-05/0.3967, allocations: 33.88 kB / 0.5363 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0152/0.4119, allocations: 7.229 MB / 0.5434 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.4121, allocations: 97.84 kB / 0.5435 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000399/0.4125, allocations: 222.9 kB / 0.5437 GB, free: 4.812 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01041/0.4229, allocations: 4.403 MB / 0.548 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.423, allocations: 1.062 kB / 0.548 GB, free: 4.668 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.423, allocations: 4 kB / 0.548 GB, free: 4.664 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.423, allocations: 0 / 0.548 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.003343/0.4263, allocations: 1.243 MB / 0.5492 GB, free: 3.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.4264, allocations: 13.2 kB / 0.5492 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/0.4281, allocations: 217.6 kB / 0.5494 GB, free: 3.914 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/0.4285, allocations: 380.3 kB / 0.5498 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.4286, allocations: 32.66 kB / 0.5498 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.4286, allocations: 30.75 kB / 0.5498 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.4301, allocations: 0.5927 MB / 0.5504 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4302, allocations: 3.469 kB / 0.5504 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.4302, allocations: 14.38 kB / 0.5504 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.4302, allocations: 7.594 kB / 0.5504 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.4318, allocations: 0.5479 MB / 0.551 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.002298/0.4341, allocations: 2.622 MB / 0.5535 GB, free: 1.523 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.4357, allocations: 462.4 kB / 0.554 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.4361, allocations: 210.7 kB / 0.5542 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04783/0.484, allocations: 24.29 MB / 0.5779 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.209e-05/0.4841, allocations: 40.03 kB / 0.5779 GB, free: 14.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.986e-06/0.4841, allocations: 0 / 0.5779 GB, free: 14.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.003354/0.4875, allocations: 0.8184 MB / 0.5787 GB, free: 13.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.4876, allocations: 110.8 kB / 0.5788 GB, free: 13.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.488, allocations: 315.2 kB / 0.5791 GB, free: 13.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.488, allocations: 33.33 kB / 0.5792 GB, free: 13.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.4882, allocations: 198.2 kB / 0.5794 GB, free: 13.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.4883, allocations: 83.78 kB / 0.5794 GB, free: 13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.4884, allocations: 68.56 kB / 0.5795 GB, free: 12.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4885, allocations: 342.7 kB / 0.5798 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.489, allocations: 149.6 kB / 0.58 GB, free: 12.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.4895, allocations: 248.1 kB / 0.5802 GB, free: 12.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009006/0.4904, allocations: 373.7 kB / 0.5806 GB, free: 11.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4904, allocations: 0 / 0.5806 GB, free: 11.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001106/0.4915, allocations: 446.3 kB / 0.581 GB, free: 11.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.4916, allocations: 8 kB / 0.581 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4916, allocations: 4 kB / 0.581 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.4916, allocations: 4 kB / 0.581 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.492, allocations: 97.44 kB / 0.5811 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.492, allocations: 6.625 kB / 0.5811 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.4924, allocations: 56.55 kB / 0.5812 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.4924, allocations: 15.88 kB / 0.5812 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.0001859/0.4926, allocations: 165 kB / 0.5813 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4927, allocations: 31.62 kB / 0.5814 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002441/0.4952, allocations: 1.916 MB / 0.5832 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.4952, allocations: 31.89 kB / 0.5833 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4952, allocations: 0 / 0.5833 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.4952, allocations: 4.688 kB / 0.5833 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000988/0.4962, allocations: 1.014 MB / 0.5843 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4962, allocations: 0.6875 kB / 0.5843 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.4966, allocations: 79.2 kB / 0.5843 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4966, allocations: 4 kB / 0.5843 GB, free: 8.566 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.4966, allocations: 4 kB / 0.5844 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.4966, allocations: 8.562 kB / 0.5844 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4966, allocations: 0 / 0.5844 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.4982, allocations: 1.096 MB / 0.5854 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.4983, allocations: 167.8 kB / 0.5856 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.077e-05/0.4984, allocations: 26.55 kB / 0.5856 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.4987, allocations: 32.78 kB / 0.5856 GB, free: 7.203 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.205e-05/0.4988, allocations: 35.95 kB / 0.5857 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.4989, allocations: 15.98 kB / 0.5857 GB, free: 7.152 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003386/0.4992, allocations: 327 kB / 0.586 GB, free: 6.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4992, allocations: 0 / 0.586 GB, free: 6.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003559/0.5028, allocations: 0.9954 MB / 0.587 GB, free: 5.844 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.00612/0.5089, allocations: 1.169 MB / 0.5881 GB, free: 4.777 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.5102, allocations: 0.6079 MB / 0.5887 GB, free: 4.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5102, allocations: 0 / 0.5887 GB, free: 4.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007247/0.5109, allocations: 0.5247 MB / 0.5892 GB, free: 3.664 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.5121, allocations: 218.3 kB / 0.5894 GB, free: 3.457 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.5141, allocations: 1.508 MB / 0.5909 GB, free: 1.926 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.5146, allocations: 0.9599 MB / 0.5918 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004514/0.5151, allocations: 278 kB / 0.5921 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.5152, allocations: 43.42 kB / 0.5922 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.5152, allocations: 0 / 0.5922 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of Templates: time 0.05956/0.5748, allocations: 39.57 MB / 0.6308 GB, free: 9.121 MB / 494.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins/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