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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 101.9 kB / 15.98 MB, free: 6.352 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.001627/0.001627, allocations: 198 kB / 16.91 MB, free: 6.195 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.647/1.647, allocations: 205.1 MB / 222.8 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3659/0.3659, allocations: 43.5 MB / 313.6 MB, free: 8.559 MB / 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.001729/0.001729, allocations: 67.91 kB / 382.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 57.78 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.3044/0.4489, allocations: 28.24 MB / 468.3 MB, free: 34.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.4625, allocations: 13.38 MB / 481.7 MB, free: 25.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004124/0.463, allocations: 10.22 kB / 481.7 MB, free: 25.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008355/0.4638, allocations: 219.4 kB / 482 MB, free: 25.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01024/0.4741, allocations: 3.232 MB / 485.2 MB, free: 24.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007114/0.4812, allocations: 2.111 MB / 487.3 MB, free: 23.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.4825, allocations: 0.8875 MB / 488.2 MB, free: 23.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004016/0.483, allocations: 239.6 kB / 488.4 MB, free: 22.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008097/0.4838, allocations: 445.5 kB / 488.9 MB, free: 22.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002804/0.4841, allocations: 277.8 kB / 489.1 MB, free: 22.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.4841, allocations: 35.84 kB / 489.2 MB, free: 22.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01741/0.5015, allocations: 7.115 MB / 496.3 MB, free: 20.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.5019, allocations: 102.5 kB / 496.4 MB, free: 20.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004866/0.5024, allocations: 218.5 kB / 496.6 MB, free: 20.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01729/0.5197, allocations: 4.417 MB / 0.4893 GB, free: 19.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/0.5198, allocations: 1.031 kB / 0.4893 GB, free: 19.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5198, allocations: 0 / 0.4893 GB, free: 19.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.5198, allocations: 4 kB / 0.4893 GB, free: 19.36 MB / 382.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.007166/0.527, allocations: 1.226 MB / 0.4905 GB, free: 18.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.527, allocations: 13.64 kB / 0.4905 GB, free: 18.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.5272, allocations: 68.64 kB / 0.4905 GB, free: 18.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001975/0.5292, allocations: 213.4 kB / 0.4908 GB, free: 18.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006982/0.5299, allocations: 361.7 kB / 0.4911 GB, free: 18.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.53, allocations: 26.38 kB / 0.4911 GB, free: 18.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.53, allocations: 30.98 kB / 0.4912 GB, free: 18.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.532, allocations: 0.5842 MB / 0.4917 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.532, allocations: 5.375 kB / 0.4917 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/0.532, allocations: 12.73 kB / 0.4917 GB, free: 17.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.5321, allocations: 11.97 kB / 0.4917 GB, free: 17.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.534, allocations: 0.5274 MB / 0.4923 GB, free: 17.75 MB / 382.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.004484/0.5385, allocations: 2.623 MB / 0.4948 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.5404, allocations: 462.1 kB / 0.4953 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004505/0.5408, allocations: 193.4 kB / 0.4955 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05266/0.5935, allocations: 24.21 MB / 0.5191 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/0.5936, allocations: 37.09 kB / 0.5191 GB, free: 12.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/0.5936, allocations: 4 kB / 0.5191 GB, free: 12.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003227/0.5969, allocations: 0.7886 MB / 0.5199 GB, free: 11.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.597, allocations: 109.7 kB / 0.52 GB, free: 11.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005126/0.5975, allocations: 307.3 kB / 0.5203 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.5976, allocations: 32.33 kB / 0.5203 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.5978, allocations: 205 kB / 0.5205 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.5979, allocations: 81.95 kB / 0.5206 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.598, allocations: 74.91 kB / 0.5207 GB, free: 11.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.5982, allocations: 340 kB / 0.521 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.5987, allocations: 140.6 kB / 0.5211 GB, free: 10.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000531/0.5992, allocations: 235 kB / 0.5214 GB, free: 10.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009229/0.6002, allocations: 357 kB / 0.5217 GB, free: 10.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.6002, allocations: 0 / 0.5217 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001162/0.6014, allocations: 431.9 kB / 0.5221 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.6014, allocations: 7.984 kB / 0.5221 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.6014, allocations: 4.875 kB / 0.5221 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-05/0.6015, allocations: 11.94 kB / 0.5221 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.6018, allocations: 75.89 kB / 0.5222 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.6018, allocations: 4 kB / 0.5222 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004917/0.6023, allocations: 56.11 kB / 0.5223 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.6024, allocations: 20 kB / 0.5223 GB, free: 9.945 MB / 398.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.0002545/0.6027, allocations: 165.6 kB / 0.5224 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.6028, allocations: 31.62 kB / 0.5225 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/0.6056, allocations: 1.889 MB / 0.5243 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-05/0.6057, allocations: 31.89 kB / 0.5243 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.6057, allocations: 2.25 kB / 0.5243 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.6057, allocations: 3.984 kB / 0.5243 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.607, allocations: 1.021 MB / 0.5253 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.607, allocations: 7.938 kB / 0.5254 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.6074, allocations: 67.88 kB / 0.5254 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.6074, allocations: 4 kB / 0.5254 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.6074, allocations: 8 kB / 0.5254 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.6074, allocations: 3.938 kB / 0.5254 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.6074, allocations: 0 / 0.5254 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.609, allocations: 1.09 MB / 0.5265 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.6093, allocations: 159.9 kB / 0.5267 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.6094, allocations: 27.69 kB / 0.5267 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003564/0.6098, allocations: 39.84 kB / 0.5267 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.6099, allocations: 31.95 kB / 0.5267 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.6099, allocations: 12 kB / 0.5268 GB, free: 5.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004137/0.6104, allocations: 327.1 kB / 0.5271 GB, free: 4.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6104, allocations: 0 / 0.5271 GB, free: 4.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007204/0.6176, allocations: 0.9915 MB / 0.528 GB, free: 3.949 MB / 398.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.01294/0.6306, allocations: 2.698 MB / 0.5307 GB, free: 1.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.6326, allocations: 0.6179 MB / 0.5313 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.6326, allocations: 0 / 0.5313 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007184/0.6333, allocations: 0.5135 MB / 0.5318 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.6346, allocations: 231.8 kB / 0.532 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.6471, allocations: 5.326 MB / 0.5372 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.6478, allocations: 0.956 MB / 0.5381 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006182/0.6484, allocations: 274.8 kB / 0.5384 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003432/0.6487, allocations: 259.3 kB / 0.5386 GB, free: 8.922 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6488, allocations: 0 / 0.5386 GB, free: 8.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08857/0.7373, allocations: 46.22 MB / 0.5838 GB, free: 10.69 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.7376, allocations: 255.3 kB / 0.584 GB, free: 10.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.498/5.235, allocations: 0 / 0.584 GB, free: 10.43 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > 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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches