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.001359/0.001359, allocations: 114.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.4 MB, free: 9.062 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.11 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001547, allocations: 78.16 kB / 417.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1311, allocations: 62.44 MB / 479.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03929/0.1704, allocations: 28.38 MB / 0.4961 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3042/0.4747, allocations: 13.38 MB / 0.5091 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005849/0.4753, allocations: 15.84 kB / 0.5092 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000957/0.4763, allocations: 224.5 kB / 0.5094 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.4893, allocations: 3.226 MB / 0.5125 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009486/0.4988, allocations: 2.12 MB / 0.5146 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.5005, allocations: 0.8923 MB / 0.5155 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006197/0.5011, allocations: 245.6 kB / 0.5157 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.5025, allocations: 449.9 kB / 0.5161 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006963/0.5032, allocations: 277.3 kB / 0.5164 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.5033, allocations: 34.91 kB / 0.5164 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01973/0.523, allocations: 7.12 MB / 0.5234 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.5233, allocations: 102.9 kB / 0.5235 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000525/0.5239, allocations: 225.2 kB / 0.5237 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.5369, allocations: 4.435 MB / 0.528 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.537, allocations: 0 / 0.528 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.537, allocations: 0 / 0.528 GB, free: 8.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.537, allocations: 2.062 kB / 0.528 GB, free: 8.727 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.004815/0.5418, allocations: 1.226 MB / 0.5292 GB, free: 7.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.5419, allocations: 14.56 kB / 0.5292 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.542, allocations: 68.72 kB / 0.5293 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.544, allocations: 214.6 kB / 0.5295 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006393/0.5447, allocations: 354.1 kB / 0.5298 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.134e-05/0.5447, allocations: 30.11 kB / 0.5299 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.505e-05/0.5448, allocations: 32.38 kB / 0.5299 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.5465, allocations: 0.579 MB / 0.5305 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5465, allocations: 1.375 kB / 0.5305 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.5466, allocations: 18.66 kB / 0.5305 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.5466, allocations: 8.25 kB / 0.5305 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.5482, allocations: 0.527 MB / 0.531 GB, free: 6.742 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.003001/0.5513, allocations: 2.626 MB / 0.5336 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.5528, allocations: 465.8 kB / 0.534 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.5532, allocations: 184.9 kB / 0.5342 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05264/0.6059, allocations: 26.77 MB / 0.5603 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.606, allocations: 35.41 kB / 0.5604 GB, free: 9.156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 4.439e-06/0.606, allocations: 1.078 kB / 0.5604 GB, free: 9.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003182/0.6092, allocations: 0.8018 MB / 0.5611 GB, free: 8.348 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.6093, allocations: 106.8 kB / 0.5613 GB, free: 8.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004337/0.6097, allocations: 308.4 kB / 0.5615 GB, free: 7.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.6098, allocations: 33.7 kB / 0.5616 GB, free: 7.875 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.6099, allocations: 203.7 kB / 0.5618 GB, free: 7.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.846e-05/0.6101, allocations: 86.77 kB / 0.5619 GB, free: 7.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.6102, allocations: 69.69 kB / 0.5619 GB, free: 7.516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.6103, allocations: 346.7 kB / 0.5623 GB, free: 7.168 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004142/0.6107, allocations: 141.7 kB / 0.5624 GB, free: 7.031 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004808/0.6112, allocations: 230.9 kB / 0.5626 GB, free: 6.766 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000835/0.6121, allocations: 359.1 kB / 0.5629 GB, free: 6.383 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.6121, allocations: 0 / 0.5629 GB, free: 6.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001086/0.6132, allocations: 428.8 kB / 0.5634 GB, free: 5.957 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.6132, allocations: 10.97 kB / 0.5634 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.6133, allocations: 4 kB / 0.5634 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.6133, allocations: 7.938 kB / 0.5634 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.6136, allocations: 83.77 kB / 0.5635 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.6137, allocations: 7.984 kB / 0.5635 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.6141, allocations: 55.56 kB / 0.5635 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.6141, allocations: 16 kB / 0.5635 GB, free: 5.781 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.0002059/0.6143, allocations: 161.7 kB / 0.5637 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.6144, allocations: 35.62 kB / 0.5637 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/0.6172, allocations: 1.897 MB / 0.5656 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.6173, allocations: 39.86 kB / 0.5656 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.6173, allocations: 4 kB / 0.5656 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.6173, allocations: 0 / 0.5656 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.6185, allocations: 1.008 MB / 0.5666 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.6185, allocations: 0 / 0.5666 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.6188, allocations: 75.88 kB / 0.5667 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.6188, allocations: 0 / 0.5667 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.6189, allocations: 8 kB / 0.5667 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.6189, allocations: 3.938 kB / 0.5667 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.6189, allocations: 7.984 kB / 0.5667 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.6205, allocations: 1.08 MB / 0.5677 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.6207, allocations: 163.9 kB / 0.5679 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.534e-05/0.6208, allocations: 23.75 kB / 0.5679 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.6212, allocations: 43.81 kB / 0.568 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.6213, allocations: 27.95 kB / 0.568 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.6213, allocations: 15.31 kB / 0.568 GB, free: 1.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003841/0.6217, allocations: 331.1 kB / 0.5683 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6217, allocations: 0 / 0.5683 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004306/0.6261, allocations: 0.9954 MB / 0.5693 GB, free: 15.79 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.008892/0.635, allocations: 2.709 MB / 0.5719 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001725/0.6367, allocations: 0.6104 MB / 0.5725 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.6367, allocations: 0 / 0.5725 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007319/0.6375, allocations: 0.5187 MB / 0.573 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.6389, allocations: 213.6 kB / 0.5733 GB, free: 11.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.6491, allocations: 5.323 MB / 0.5784 GB, free: 6.367 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.6497, allocations: 0.9638 MB / 0.5794 GB, free: 5.375 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005658/0.6503, allocations: 275.1 kB / 0.5797 GB, free: 5.113 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.6506, allocations: 259.3 kB / 0.5799 GB, free: 4.859 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6507, allocations: 0 / 0.5799 GB, free: 4.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08731/0.738, allocations: 46.33 MB / 0.6251 GB, free: 6.723 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.7383, allocations: 257.3 kB / 0.6254 GB, free: 6.469 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.339/5.077, allocations: 0 / 0.6254 GB, free: 6.469 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