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: 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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 107.1 kB / 18.45 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 207.9 kB / 19.4 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2022/0.2022, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2854, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02887/0.3143, allocations: 28.27 MB / 0.5593 GB, free: 5.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.3295, allocations: 13.29 MB / 0.5722 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003644/0.3299, allocations: 11.94 kB / 0.5722 GB, free: 8.059 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007514/0.3307, allocations: 250.3 kB / 0.5725 GB, free: 7.812 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.3408, allocations: 3.671 MB / 0.5761 GB, free: 4.141 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006234/0.3471, allocations: 2.371 MB / 0.5784 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.3482, allocations: 0.8925 MB / 0.5793 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003625/0.3486, allocations: 260.5 kB / 0.5795 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006993/0.3493, allocations: 442.2 kB / 0.5799 GB, free: 192 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003202/0.3496, allocations: 270.8 kB / 0.5802 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-05/0.3497, allocations: 32 kB / 0.5802 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.3631, allocations: 7.239 MB / 0.5873 GB, free: 8.645 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.3633, allocations: 103.7 kB / 0.5874 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.3636, allocations: 223 kB / 0.5876 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009023/0.3726, allocations: 4.427 MB / 0.5919 GB, free: 3.887 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3726, allocations: 0 / 0.5919 GB, free: 3.887 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3726, allocations: 0 / 0.5919 GB, free: 3.887 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3726, allocations: 0 / 0.5919 GB, free: 3.887 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.002754/0.3754, allocations: 1.263 MB / 0.5932 GB, free: 2.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3755, allocations: 8.031 kB / 0.5932 GB, free: 2.562 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/0.3771, allocations: 216.5 kB / 0.5934 GB, free: 2.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.3776, allocations: 383.4 kB / 0.5937 GB, free: 1.938 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/0.3777, allocations: 36.95 kB / 0.5938 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.3777, allocations: 28.38 kB / 0.5938 GB, free: 1.875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3792, allocations: 0.5822 MB / 0.5944 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3792, allocations: 0 / 0.5944 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.3793, allocations: 16 kB / 0.5944 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.3793, allocations: 12 kB / 0.5944 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.3808, allocations: 0.5211 MB / 0.5949 GB, free: 0.7031 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.002833/0.3836, allocations: 2.621 MB / 0.5975 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.3852, allocations: 462.1 kB / 0.5979 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/0.3856, allocations: 192.7 kB / 0.5981 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04717/0.4328, allocations: 26.89 MB / 0.6243 GB, free: 14.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4328, allocations: 38.56 kB / 0.6244 GB, free: 14.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.334e-06/0.4328, allocations: 0 / 0.6244 GB, free: 14.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002758/0.4356, allocations: 0.7858 MB / 0.6251 GB, free: 14.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.4357, allocations: 110.8 kB / 0.6253 GB, free: 13.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.436, allocations: 308.5 kB / 0.6255 GB, free: 13.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.4361, allocations: 33.7 kB / 0.6256 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.4362, allocations: 216.5 kB / 0.6258 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.4363, allocations: 83.27 kB / 0.6259 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.4364, allocations: 65.69 kB / 0.6259 GB, free: 13.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4365, allocations: 346.8 kB / 0.6263 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.4369, allocations: 139.9 kB / 0.6264 GB, free: 12.71 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.4373, allocations: 231.8 kB / 0.6266 GB, free: 12.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000764/0.4381, allocations: 365.9 kB / 0.627 GB, free: 12.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4381, allocations: 4 kB / 0.627 GB, free: 12.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009659/0.4391, allocations: 425 kB / 0.6274 GB, free: 11.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.4391, allocations: 8 kB / 0.6274 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.4391, allocations: 4 kB / 0.6274 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.4392, allocations: 4 kB / 0.6274 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.4395, allocations: 79.83 kB / 0.6275 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.4395, allocations: 11.92 kB / 0.6275 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.4398, allocations: 44.05 kB / 0.6275 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.4398, allocations: 15.98 kB / 0.6275 GB, free: 11.46 MB / 494.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.0001668/0.44, allocations: 165.7 kB / 0.6277 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.768e-05/0.4401, allocations: 35.77 kB / 0.6277 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.4424, allocations: 1.893 MB / 0.6296 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4425, allocations: 7.938 kB / 0.6296 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4425, allocations: 0 / 0.6296 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.4426, allocations: 172.2 kB / 0.6297 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.732e-05/0.4427, allocations: 31.78 kB / 0.6298 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.443, allocations: 35.95 kB / 0.6298 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.585e-05/0.4431, allocations: 35.95 kB / 0.6298 GB, free: 9.055 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001499/0.4446, allocations: 1.07 MB / 0.6309 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001462/0.4461, allocations: 1.157 MB / 0.632 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006278/0.4467, allocations: 497 kB / 0.6325 GB, free: 6.316 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003498/0.4471, allocations: 327.1 kB / 0.6328 GB, free: 5.996 MB / 494.1 MB Notification: Performance of Backend: time 8.32e-07/0.4471, allocations: 4 kB / 0.6328 GB, free: 5.992 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006182/0.4533, allocations: 1.689 MB / 0.6345 GB, free: 4.309 MB / 494.1 MB Notification: Performance of SimCode: time 0.002089/0.4554, allocations: 1.62 MB / 0.636 GB, free: 2.641 MB / 494.1 MB Notification: Performance of Templates: time 0.05899/0.5144, allocations: 43.92 MB / 0.6789 GB, free: 6.742 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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