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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001611/0.001611, allocations: 122.7 kB / 18.46 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00207/0.002069, allocations: 207.3 kB / 21.4 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 227.4 MB / 251.6 MB, free: 76 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3002/0.3002, allocations: 46.17 MB / 351.1 MB, free: 14.28 MB / 286.1 MB " [Timeout remaining time 180] 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=5006,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=5006,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002794/0.002794, allocations: 85.47 kB / 490.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1824, allocations: 62.45 MB / 0.5397 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03643/0.2189, allocations: 28.25 MB / 0.5673 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01812/0.237, allocations: 13.29 MB / 0.5803 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005387/0.2376, allocations: 15.88 kB / 0.5803 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008894/0.2386, allocations: 254.4 kB / 0.5805 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.25, allocations: 3.668 MB / 0.5841 GB, free: 6.598 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008474/0.2585, allocations: 2.371 MB / 0.5864 GB, free: 4.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.2602, allocations: 0.8886 MB / 0.5873 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004878/0.2607, allocations: 256.7 kB / 0.5875 GB, free: 3.086 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.2618, allocations: 434.2 kB / 0.5879 GB, free: 2.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003906/0.2622, allocations: 262.9 kB / 0.5882 GB, free: 2.402 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.776e-05/0.2622, allocations: 39.94 kB / 0.5882 GB, free: 2.363 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01608/0.2783, allocations: 7.235 MB / 0.5953 GB, free: 11.12 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002493/0.2786, allocations: 103.7 kB / 0.5954 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004149/0.279, allocations: 215 kB / 0.5956 GB, free: 10.81 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.2925, allocations: 4.427 MB / 0.5999 GB, free: 6.371 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2926, allocations: 0 / 0.5999 GB, free: 6.371 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.2926, allocations: 4 kB / 0.5999 GB, free: 6.367 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.2926, allocations: 3.938 kB / 0.5999 GB, free: 6.363 MB / 462.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.004069/0.2967, allocations: 1.259 MB / 0.6012 GB, free: 5.051 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.2968, allocations: 12.03 kB / 0.6012 GB, free: 5.039 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.2985, allocations: 220.4 kB / 0.6014 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000689/0.2992, allocations: 375.5 kB / 0.6017 GB, free: 4.418 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.373e-05/0.2993, allocations: 25.03 kB / 0.6018 GB, free: 4.395 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.047e-05/0.2993, allocations: 32.38 kB / 0.6018 GB, free: 4.363 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.301, allocations: 0.586 MB / 0.6024 GB, free: 3.734 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.301, allocations: 0 / 0.6024 GB, free: 3.734 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.301, allocations: 15.98 kB / 0.6024 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3011, allocations: 8 kB / 0.6024 GB, free: 3.711 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.3027, allocations: 0.525 MB / 0.6029 GB, free: 3.188 MB / 462.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.003444/0.3061, allocations: 2.637 MB / 0.6055 GB, free: 320 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3313/0.6375, allocations: 452.2 kB / 0.6059 GB, free: 61.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005663/0.6381, allocations: 191.9 kB / 0.6061 GB, free: 61.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05303/0.6911, allocations: 26.88 MB / 0.6323 GB, free: 43.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.6912, allocations: 37.59 kB / 0.6324 GB, free: 43.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 3.166e-06/0.6912, allocations: 0 / 0.6324 GB, free: 43.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=25): time 0.00285/0.6941, allocations: 0.7883 MB / 0.6331 GB, free: 43.08 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.6941, allocations: 106.2 kB / 0.6332 GB, free: 42.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.6945, allocations: 312.6 kB / 0.6335 GB, free: 42.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.6946, allocations: 26.98 kB / 0.6336 GB, free: 42.72 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.6947, allocations: 208.5 kB / 0.6338 GB, free: 42.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.661e-05/0.6948, allocations: 91.09 kB / 0.6339 GB, free: 42.51 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.6949, allocations: 69.67 kB / 0.6339 GB, free: 42.46 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.695, allocations: 350 kB / 0.6343 GB, free: 42.12 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.6954, allocations: 136.9 kB / 0.6344 GB, free: 42.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.6958, allocations: 235.3 kB / 0.6346 GB, free: 41.87 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007746/0.6966, allocations: 360 kB / 0.635 GB, free: 41.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6966, allocations: 2.391 kB / 0.635 GB, free: 41.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001021/0.6976, allocations: 421.1 kB / 0.6354 GB, free: 41.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.6977, allocations: 6.781 kB / 0.6354 GB, free: 41.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.6977, allocations: 6 kB / 0.6354 GB, free: 41.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.6977, allocations: 5.594 kB / 0.6354 GB, free: 41.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.698, allocations: 86.72 kB / 0.6355 GB, free: 41.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.6981, allocations: 4.406 kB / 0.6355 GB, free: 41.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.6983, allocations: 51.7 kB / 0.6355 GB, free: 41.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.6984, allocations: 19.09 kB / 0.6355 GB, free: 41.37 MB / 462.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.0001736/0.6986, allocations: 160.8 kB / 0.6357 GB, free: 41.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.133e-05/0.6986, allocations: 33.5 kB / 0.6357 GB, free: 41.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002294/0.7009, allocations: 1.896 MB / 0.6376 GB, free: 40.14 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.043e-05/0.701, allocations: 35.31 kB / 0.6376 GB, free: 40.12 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.701, allocations: 1.562 kB / 0.6376 GB, free: 40.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.701, allocations: 2.531 kB / 0.6376 GB, free: 40.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009563/0.702, allocations: 1.021 MB / 0.6386 GB, free: 39.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.702, allocations: 0 / 0.6386 GB, free: 39.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/0.7023, allocations: 72 kB / 0.6387 GB, free: 39.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.7023, allocations: 1.375 kB / 0.6387 GB, free: 39.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.7023, allocations: 10.75 kB / 0.6387 GB, free: 39.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.7023, allocations: 1.375 kB / 0.6387 GB, free: 39.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7024, allocations: 2.5 kB / 0.6387 GB, free: 39.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.7037, allocations: 1.087 MB / 0.6397 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.7038, allocations: 166.4 kB / 0.6399 GB, free: 38.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.457e-05/0.7038, allocations: 30.17 kB / 0.6399 GB, free: 38.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.7041, allocations: 19.36 kB / 0.64 GB, free: 38.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.7042, allocations: 39.25 kB / 0.64 GB, free: 38.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.7042, allocations: 11.92 kB / 0.64 GB, free: 38.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002849/0.7045, allocations: 327.2 kB / 0.6403 GB, free: 38.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7045, allocations: 4 kB / 0.6403 GB, free: 38.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00263/0.7072, allocations: 1.011 MB / 0.6413 GB, free: 38.22 MB / 462.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.003781/0.7109, allocations: 1.176 MB / 0.6425 GB, free: 37.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.7121, allocations: 0.5934 MB / 0.643 GB, free: 37.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.7122, allocations: 0 / 0.643 GB, free: 37.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.7127, allocations: 0.5108 MB / 0.6435 GB, free: 37.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.7139, allocations: 212.8 kB / 0.6437 GB, free: 37.19 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.7157, allocations: 1.525 MB / 0.6452 GB, free: 36.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.716, allocations: 0.9638 MB / 0.6462 GB, free: 35.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003578/0.7164, allocations: 273.3 kB / 0.6464 GB, free: 34.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.781e-05/0.7165, allocations: 39.44 kB / 0.6465 GB, free: 34.92 MB / 462.1 MB Notification: Performance of SimCode: time 1.372e-06/0.7165, allocations: 4 kB / 0.6465 GB, free: 34.92 MB / 462.1 MB Notification: Performance of Templates: time 0.04452/0.761, allocations: 39.52 MB / 0.6851 GB, free: 11.48 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.369842018932104]