Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001478/0.001478, allocations: 104.2 kB / 17.2 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00173/0.00173, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 75.41 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1307, allocations: 62.46 MB / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03601/0.1668, allocations: 29.11 MB / 0.4966 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2827/0.4495, allocations: 14.26 MB / 0.5105 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.4499, allocations: 11.56 kB / 0.5105 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007314/0.4507, allocations: 222.6 kB / 0.5107 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.461, allocations: 2.925 MB / 0.5136 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006572/0.4676, allocations: 1.977 MB / 0.5155 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.4693, allocations: 1.135 MB / 0.5166 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.4697, allocations: 202.9 kB / 0.5168 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007942/0.4705, allocations: 415.5 kB / 0.5172 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.4709, allocations: 274.6 kB / 0.5175 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.4709, allocations: 17.19 kB / 0.5175 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01709/0.488, allocations: 7.131 MB / 0.5245 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.4883, allocations: 86.33 kB / 0.5245 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004881/0.4888, allocations: 205 kB / 0.5247 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.5024, allocations: 4.411 MB / 0.5291 GB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5024, allocations: 0 / 0.5291 GB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.5024, allocations: 0 / 0.5291 GB, free: 8.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.5025, allocations: 0 / 0.5291 GB, free: 8.848 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.004168/0.5066, allocations: 1.232 MB / 0.5303 GB, free: 7.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.5067, allocations: 10.34 kB / 0.5303 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.845e-05/0.5068, allocations: 68.75 kB / 0.5303 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.5085, allocations: 210.2 kB / 0.5305 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.5089, allocations: 364 kB / 0.5309 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.509, allocations: 26.78 kB / 0.5309 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.509, allocations: 27.62 kB / 0.5309 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.5105, allocations: 0.5846 MB / 0.5315 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.5105, allocations: 2.578 kB / 0.5315 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.5105, allocations: 17.5 kB / 0.5315 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.5106, allocations: 6.875 kB / 0.5315 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.5121, allocations: 0.5283 MB / 0.532 GB, free: 6.797 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.002619/0.5147, allocations: 2.625 MB / 0.5346 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.5162, allocations: 464.5 kB / 0.535 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003951/0.5166, allocations: 190.2 kB / 0.5352 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04794/0.5646, allocations: 26.76 MB / 0.5614 GB, free: 9.215 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.5646, allocations: 43.44 kB / 0.5614 GB, free: 9.164 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.5646, allocations: 0 / 0.5614 GB, free: 9.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002893/0.5675, allocations: 0.794 MB / 0.5622 GB, free: 8.363 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.5676, allocations: 110.8 kB / 0.5623 GB, free: 8.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.568, allocations: 312.3 kB / 0.5626 GB, free: 7.922 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.5681, allocations: 37.62 kB / 0.5626 GB, free: 7.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.5682, allocations: 201 kB / 0.5628 GB, free: 7.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.5683, allocations: 90.27 kB / 0.5629 GB, free: 7.594 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.5685, allocations: 69.69 kB / 0.563 GB, free: 7.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.5686, allocations: 338.8 kB / 0.5633 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.569, allocations: 137.7 kB / 0.5634 GB, free: 7.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.5695, allocations: 243.7 kB / 0.5637 GB, free: 6.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007805/0.5703, allocations: 349.1 kB / 0.564 GB, free: 6.395 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5703, allocations: 0 / 0.564 GB, free: 6.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009671/0.5713, allocations: 425 kB / 0.5644 GB, free: 5.973 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.5713, allocations: 12.06 kB / 0.5644 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5713, allocations: 0 / 0.5644 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.5713, allocations: 11.88 kB / 0.5644 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.5717, allocations: 87.88 kB / 0.5645 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.5717, allocations: 4 kB / 0.5645 GB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.5721, allocations: 59.5 kB / 0.5646 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.5721, allocations: 16 kB / 0.5646 GB, free: 5.789 MB / 414.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.000212/0.5724, allocations: 157.8 kB / 0.5647 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.5725, allocations: 35.62 kB / 0.5648 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.5749, allocations: 1.901 MB / 0.5666 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.429e-05/0.575, allocations: 35.88 kB / 0.5666 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.575, allocations: 0 / 0.5666 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.575, allocations: 0 / 0.5666 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.5761, allocations: 1.012 MB / 0.5676 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.5761, allocations: 4 kB / 0.5676 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.5764, allocations: 71.88 kB / 0.5677 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.5764, allocations: 0.8438 kB / 0.5677 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.5765, allocations: 11.98 kB / 0.5677 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.5765, allocations: 3.938 kB / 0.5677 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.5765, allocations: 0 / 0.5677 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.578, allocations: 1.08 MB / 0.5688 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.5781, allocations: 159.9 kB / 0.5689 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/0.5782, allocations: 27.69 kB / 0.569 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.5785, allocations: 43.81 kB / 0.569 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.5786, allocations: 35.89 kB / 0.569 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.5787, allocations: 14.42 kB / 0.569 GB, free: 1.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003636/0.579, allocations: 327.1 kB / 0.5694 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.579, allocations: 4 kB / 0.5694 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005324/0.5844, allocations: 0.9994 MB / 0.5703 GB, free: 15.8 MB / 430.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.0116/0.596, allocations: 2.704 MB / 0.573 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.5975, allocations: 0.5871 MB / 0.5736 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.5975, allocations: 0.625 kB / 0.5736 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007325/0.5982, allocations: 0.5102 MB / 0.5741 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.5996, allocations: 215.1 kB / 0.5743 GB, free: 11.87 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.6104, allocations: 5.33 MB / 0.5795 GB, free: 6.402 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/0.611, allocations: 0.9638 MB / 0.5804 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005962/0.6116, allocations: 269.4 kB / 0.5807 GB, free: 5.156 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.612, allocations: 263.3 kB / 0.5809 GB, free: 4.898 MB / 430.1 MB Notification: Performance of SimCode: time 1.442e-06/0.612, allocations: 3.938 kB / 0.5809 GB, free: 4.895 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0783/0.6903, allocations: 45.88 MB / 0.6257 GB, free: 7.18 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.6905, allocations: 253.6 kB / 0.626 GB, free: 6.926 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.206/4.897, allocations: 0 / 0.626 GB, free: 6.926 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches