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.00122/0.00122, allocations: 118.1 kB / 17.09 MB, free: 6.008 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.001298/0.001298, allocations: 193.3 kB / 18.01 MB, free: 5.094 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.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.2156/0.2156, allocations: 43.52 MB / 314.8 MB, free: 468 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.001629/0.001629, allocations: 63.89 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1247, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03389/0.1586, allocations: 28.13 MB / 0.516 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.1759, allocations: 13.3 MB / 0.529 GB, free: 2.234 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005244/0.1764, allocations: 7.938 kB / 0.529 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009199/0.1774, allocations: 246.4 kB / 0.5292 GB, free: 1.984 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.318/0.4955, allocations: 3.647 MB / 0.5328 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008545/0.5041, allocations: 2.359 MB / 0.5351 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.5056, allocations: 0.8865 MB / 0.536 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000451/0.5061, allocations: 251.1 kB / 0.5362 GB, free: 4.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000913/0.507, allocations: 442.8 kB / 0.5366 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004046/0.5074, allocations: 265.4 kB / 0.5369 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.019e-05/0.5075, allocations: 33.5 kB / 0.5369 GB, free: 4.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01893/0.5264, allocations: 7.227 MB / 0.544 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002821/0.5267, allocations: 100.8 kB / 0.5441 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000494/0.5272, allocations: 218.7 kB / 0.5443 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.5422, allocations: 4.403 MB / 0.5486 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.902e-06/0.5422, allocations: 0 / 0.5486 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5422, allocations: 0.8438 kB / 0.5486 GB, free: 4.656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.5422, allocations: 0 / 0.5486 GB, free: 4.656 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.005308/0.5475, allocations: 1.233 MB / 0.5498 GB, free: 3.934 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.5476, allocations: 16.33 kB / 0.5498 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.5494, allocations: 211.4 kB / 0.55 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006606/0.5501, allocations: 383.7 kB / 0.5504 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.5501, allocations: 26.44 kB / 0.5504 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.5502, allocations: 26.84 kB / 0.5504 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.5518, allocations: 0.5834 MB / 0.551 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.5518, allocations: 5.188 kB / 0.551 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.756e-05/0.5519, allocations: 14.94 kB / 0.551 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.5519, allocations: 9.922 kB / 0.551 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.5536, allocations: 0.5257 MB / 0.5515 GB, free: 3.527 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.002758/0.5563, allocations: 2.615 MB / 0.5541 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001612/0.558, allocations: 460.5 kB / 0.5545 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.5584, allocations: 191.5 kB / 0.5547 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0524/0.6108, allocations: 24.3 MB / 0.5784 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.245e-05/0.6109, allocations: 38.44 kB / 0.5785 GB, free: 14.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.6109, allocations: 0 / 0.5785 GB, free: 14.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002945/0.6139, allocations: 0.7841 MB / 0.5792 GB, free: 13.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.6139, allocations: 110.8 kB / 0.5793 GB, free: 13.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.6143, allocations: 314.8 kB / 0.5796 GB, free: 13.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.6144, allocations: 33.08 kB / 0.5797 GB, free: 13.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.6145, allocations: 205.7 kB / 0.5799 GB, free: 13.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.546e-05/0.6146, allocations: 89.7 kB / 0.58 GB, free: 13.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.6147, allocations: 64.88 kB / 0.58 GB, free: 13.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.6149, allocations: 341.1 kB / 0.5803 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.6153, allocations: 136.3 kB / 0.5805 GB, free: 12.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.6157, allocations: 237.6 kB / 0.5807 GB, free: 12.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.6165, allocations: 355.1 kB / 0.581 GB, free: 12.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6165, allocations: 4 kB / 0.581 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009838/0.6175, allocations: 431.9 kB / 0.5815 GB, free: 11.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.6176, allocations: 4 kB / 0.5815 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.6176, allocations: 4 kB / 0.5815 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.6176, allocations: 7.188 kB / 0.5815 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.6179, allocations: 82.59 kB / 0.5815 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.618, allocations: 4 kB / 0.5816 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003215/0.6183, allocations: 48.66 kB / 0.5816 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.6183, allocations: 19.19 kB / 0.5816 GB, free: 11.67 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.0002058/0.6185, allocations: 164.2 kB / 0.5818 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.6186, allocations: 35.53 kB / 0.5818 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/0.621, allocations: 1.897 MB / 0.5837 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/0.621, allocations: 35.83 kB / 0.5837 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.6211, allocations: 0 / 0.5837 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6211, allocations: 3.984 kB / 0.5837 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.6221, allocations: 1.009 MB / 0.5847 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.6221, allocations: 5.125 kB / 0.5847 GB, free: 8.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.6224, allocations: 71.5 kB / 0.5848 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.6225, allocations: 4 kB / 0.5848 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.6225, allocations: 4 kB / 0.5848 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.6225, allocations: 7.938 kB / 0.5848 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6225, allocations: 0 / 0.5848 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.6239, allocations: 1.077 MB / 0.5858 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.6241, allocations: 163.9 kB / 0.586 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/0.6242, allocations: 23.75 kB / 0.586 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.6244, allocations: 35.8 kB / 0.586 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.6245, allocations: 27.95 kB / 0.5861 GB, free: 7.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.6246, allocations: 15.98 kB / 0.5861 GB, free: 7.402 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.6249, allocations: 327.1 kB / 0.5864 GB, free: 7.086 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6249, allocations: 0 / 0.5864 GB, free: 7.086 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004238/0.6292, allocations: 0.9914 MB / 0.5874 GB, free: 6.098 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.005492/0.6347, allocations: 1.166 MB / 0.5885 GB, free: 5.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.636, allocations: 0.5927 MB / 0.5891 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.636, allocations: 4 kB / 0.5891 GB, free: 4.445 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006697/0.6367, allocations: 0.5083 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.001235/0.6379, allocations: 220.8 kB / 0.5898 GB, free: 3.738 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.64, allocations: 1.538 MB / 0.5913 GB, free: 2.172 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.6405, allocations: 0.9638 MB / 0.5922 GB, free: 1.184 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.6407, allocations: 43.44 kB / 0.5923 GB, free: 1.141 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.6407, allocations: 0 / 0.5923 GB, free: 1.141 MB / 446.1 MB Notification: Performance of Templates: time 0.03779/0.6785, allocations: 23.96 MB / 0.6157 GB, free: 9.199 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