Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00122/0.00122, allocations: 112.5 kB / 18.45 MB, free: 4.609 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.001195/0.001195, allocations: 189.2 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 243.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1918/0.1918, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001518, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.327, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03143/0.3585, allocations: 28.14 MB / 0.547 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01745/0.376, allocations: 13.3 MB / 0.56 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005861/0.3766, allocations: 7.938 kB / 0.56 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009603/0.3776, allocations: 250.4 kB / 0.5603 GB, free: 2.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01187/0.3895, allocations: 3.667 MB / 0.5639 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007507/0.3971, allocations: 2.368 MB / 0.5662 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001686/0.3988, allocations: 0.9002 MB / 0.567 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.3993, allocations: 244.8 kB / 0.5673 GB, free: 11.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.4004, allocations: 454.1 kB / 0.5677 GB, free: 10.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004891/0.4009, allocations: 274.9 kB / 0.568 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.401, allocations: 32 kB / 0.568 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01511/0.4161, allocations: 7.227 MB / 0.5751 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.4164, allocations: 107.6 kB / 0.5752 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004211/0.4168, allocations: 223 kB / 0.5754 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.4276, allocations: 4.409 MB / 0.5797 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4277, allocations: 0 / 0.5797 GB, free: 14.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4277, allocations: 0 / 0.5797 GB, free: 14.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.4277, allocations: 0 / 0.5797 GB, free: 14.38 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.003653/0.4314, allocations: 1.243 MB / 0.5809 GB, free: 13.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4314, allocations: 12.03 kB / 0.5809 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/0.4332, allocations: 204.3 kB / 0.5811 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.4339, allocations: 387.2 kB / 0.5815 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.434, allocations: 25.03 kB / 0.5815 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.434, allocations: 36.31 kB / 0.5815 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.4356, allocations: 0.59 MB / 0.5821 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.4357, allocations: 0 / 0.5821 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/0.4357, allocations: 16 kB / 0.5821 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.4357, allocations: 8 kB / 0.5821 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.4374, allocations: 0.5406 MB / 0.5827 GB, free: 11.21 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.003015/0.4404, allocations: 2.632 MB / 0.5852 GB, free: 8.336 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.442, allocations: 466.1 kB / 0.5857 GB, free: 7.871 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.4425, allocations: 196.7 kB / 0.5859 GB, free: 7.676 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0482/0.4907, allocations: 24.31 MB / 0.6096 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.4908, allocations: 38.56 kB / 0.6096 GB, free: 12.42 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.4908, allocations: 0 / 0.6096 GB, free: 12.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003059/0.4939, allocations: 0.8246 MB / 0.6104 GB, free: 11.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.494, allocations: 106.8 kB / 0.6105 GB, free: 11.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004482/0.4944, allocations: 316.4 kB / 0.6108 GB, free: 11.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.4945, allocations: 29.7 kB / 0.6109 GB, free: 11.11 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.4946, allocations: 208.2 kB / 0.6111 GB, free: 10.89 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.951e-05/0.4947, allocations: 82.83 kB / 0.6112 GB, free: 10.81 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.4949, allocations: 77.59 kB / 0.6112 GB, free: 10.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.495, allocations: 346.8 kB / 0.6116 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.4954, allocations: 143.9 kB / 0.6117 GB, free: 10.24 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.4959, allocations: 235 kB / 0.6119 GB, free: 9.973 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009645/0.4969, allocations: 377 kB / 0.6123 GB, free: 9.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.4969, allocations: 4 kB / 0.6123 GB, free: 9.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001139/0.4981, allocations: 445.8 kB / 0.6127 GB, free: 9.125 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.4981, allocations: 4 kB / 0.6127 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.4981, allocations: 4 kB / 0.6127 GB, free: 9.117 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.4982, allocations: 11.88 kB / 0.6127 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/0.4985, allocations: 91.88 kB / 0.6128 GB, free: 9.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.4985, allocations: 7.938 kB / 0.6128 GB, free: 9.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.4989, allocations: 47.91 kB / 0.6129 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/0.4989, allocations: 23.97 kB / 0.6129 GB, free: 8.938 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: 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.0002675/0.4992, allocations: 157.7 kB / 0.613 GB, free: 8.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.4993, allocations: 35.61 kB / 0.6131 GB, free: 8.738 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.502, allocations: 1.905 MB / 0.6149 GB, free: 6.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.204e-05/0.502, allocations: 35.89 kB / 0.615 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.5021, allocations: 4 kB / 0.615 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.5021, allocations: 7.922 kB / 0.615 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.5031, allocations: 1.019 MB / 0.616 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.5031, allocations: 0 / 0.616 GB, free: 5.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.5035, allocations: 75.92 kB / 0.616 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.5035, allocations: 0 / 0.616 GB, free: 5.629 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.5035, allocations: 8 kB / 0.6161 GB, free: 5.621 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.5035, allocations: 3.938 kB / 0.6161 GB, free: 5.617 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5035, allocations: 4 kB / 0.6161 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.5052, allocations: 1.104 MB / 0.6171 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.5054, allocations: 152 kB / 0.6173 GB, free: 4.324 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.483e-05/0.5055, allocations: 27.69 kB / 0.6173 GB, free: 4.297 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002954/0.5058, allocations: 31.91 kB / 0.6173 GB, free: 4.266 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.935e-05/0.5059, allocations: 31.95 kB / 0.6174 GB, free: 4.234 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.5059, allocations: 11.98 kB / 0.6174 GB, free: 4.223 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003552/0.5063, allocations: 331.1 kB / 0.6177 GB, free: 3.898 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5063, allocations: 0 / 0.6177 GB, free: 3.898 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002813/0.5091, allocations: 0.9955 MB / 0.6187 GB, free: 2.902 MB / 478.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.004897/0.514, allocations: 1.173 MB / 0.6198 GB, free: 1.73 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.5154, allocations: 0.6106 MB / 0.6204 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5154, allocations: 0 / 0.6204 GB, free: 1.117 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007466/0.5161, allocations: 0.5217 MB / 0.6209 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.5174, allocations: 214.2 kB / 0.6211 GB, free: 400 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.5196, allocations: 1.541 MB / 0.6226 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.5201, allocations: 0.9638 MB / 0.6236 GB, free: 13.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.5203, allocations: 43.44 kB / 0.6236 GB, free: 13.79 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5203, allocations: 0 / 0.6236 GB, free: 13.79 MB / 494.1 MB Notification: Performance of Templates: time 0.03574/0.556, allocations: 24.03 MB / 0.6471 GB, free: 5.773 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches