Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007018/0.0007018, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009851/0.001687, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006866/0.0006866, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000906/0.001593, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9679/0.9679, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0969/1.065, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2795/0.2795, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03247/0.312, allocations: 13.1 MB / 291.3 MB, free: 7.363 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 292.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.209e-05/1.365e-05, allocations: 4.141 kB / 292.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01204/0.01205, allocations: 14.89 MB / 307.5 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.0225, allocations: 11.92 MB / 319.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003396/0.02284, allocations: 19.81 kB / 319.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.02318, allocations: 138.9 kB / 319.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00601/0.02919, allocations: 3.342 MB / 322.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003842/0.03304, allocations: 1.938 MB / 324.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007826/0.03382, allocations: 0.943 MB / 325.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.03411, allocations: 228.9 kB / 326 MB, free: 4.746 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007004/0.03481, allocations: 0.5695 MB / 326.6 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004594/0.03527, allocations: 231.3 kB / 326.8 MB, free: 3.949 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.03531, allocations: 32 kB / 326.9 MB, free: 3.918 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00984/0.04515, allocations: 7.264 MB / 334.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.04527, allocations: 79.73 kB / 334.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.0454, allocations: 135.8 kB / 334.3 MB, free: 12.44 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006073/0.05147, allocations: 4.004 MB / 338.4 MB, free: 8.426 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.467e-05/0.05149, allocations: 4 kB / 338.4 MB, free: 8.422 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.05149, allocations: 0 / 338.4 MB, free: 8.422 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.05151, allocations: 3.938 kB / 338.4 MB, free: 8.418 MB / 330.7 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.001753/0.05326, allocations: 1.512 MB / 339.9 MB, free: 6.859 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.0533, allocations: 8.031 kB / 339.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009061/0.0542, allocations: 343.8 kB / 340.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.05452, allocations: 280.5 kB / 340.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.05455, allocations: 25.03 kB / 340.5 MB, free: 6.184 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.05458, allocations: 32.38 kB / 340.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.05562, allocations: 0.6686 MB / 341.2 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.05563, allocations: 192 / 341.2 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.05566, allocations: 23.94 kB / 341.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.05567, allocations: 15.92 kB / 341.3 MB, free: 5.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004815/0.05615, allocations: 321.8 kB / 341.6 MB, free: 5.047 MB / 330.7 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.001301/0.05746, allocations: 1.525 MB / 343.1 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000597/0.05805, allocations: 338.1 kB / 343.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/0.05812, allocations: 61.47 kB / 343.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1406/0.1988, allocations: 72.57 MB / 416.1 MB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.1988, allocations: 38.56 kB / 416.1 MB, free: 10.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.924e-06/0.1988, allocations: 0 / 416.1 MB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001094/0.1999, allocations: 0.5235 MB / 416.6 MB, free: 9.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.1999, allocations: 51.41 kB / 416.7 MB, free: 9.773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.2001, allocations: 266.8 kB / 416.9 MB, free: 9.504 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.2001, allocations: 29.7 kB / 417 MB, free: 9.469 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/0.2002, allocations: 176.9 kB / 417.1 MB, free: 9.293 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.2002, allocations: 95.2 kB / 417.2 MB, free: 9.199 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.2003, allocations: 69.66 kB / 417.3 MB, free: 9.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.079e-05/0.2004, allocations: 342.8 kB / 417.6 MB, free: 8.781 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.2004, allocations: 43.95 kB / 417.7 MB, free: 8.738 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2006, allocations: 206.5 kB / 417.9 MB, free: 8.484 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.2007, allocations: 216.4 kB / 418.1 MB, free: 8.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.2007, allocations: 4 kB / 418.1 MB, free: 8.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002208/0.201, allocations: 217.5 kB / 418.3 MB, free: 8.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.201, allocations: 13.75 kB / 418.3 MB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.201, allocations: 11.92 kB / 418.3 MB, free: 7.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.201, allocations: 4 kB / 418.3 MB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.2012, allocations: 75.89 kB / 418.4 MB, free: 7.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2012, allocations: 4 kB / 418.4 MB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.2013, allocations: 47.7 kB / 418.4 MB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.2013, allocations: 8 kB / 418.5 MB, free: 7.859 MB / 410.7 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_a.phase,V1.state_b.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.0001004/0.2014, allocations: 132.6 kB / 418.6 MB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.2015, allocations: 35.91 kB / 418.6 MB, free: 7.684 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008271/0.2023, allocations: 1.107 MB / 419.7 MB, free: 6.562 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.2023, allocations: 27.95 kB / 419.8 MB, free: 6.535 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2023, allocations: 3.984 kB / 419.8 MB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2023, allocations: 0 / 419.8 MB, free: 6.531 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004215/0.2027, allocations: 0.5462 MB / 420.3 MB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.2028, allocations: 8 kB / 420.3 MB, free: 5.961 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.2029, allocations: 59.97 kB / 420.4 MB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.2029, allocations: 87.14 kB / 420.5 MB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2029, allocations: 7.938 kB / 420.5 MB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.2029, allocations: 4 kB / 420.5 MB, free: 5.805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2029, allocations: 4 kB / 420.5 MB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2029, allocations: 0 / 420.5 MB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007305/0.2037, allocations: 0.656 MB / 421.1 MB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.2037, allocations: 31.72 kB / 421.2 MB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.444e-05/0.2038, allocations: 15.98 kB / 421.2 MB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.2039, allocations: 35.94 kB / 421.2 MB, free: 5.047 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2039, allocations: 4 kB / 421.2 MB, free: 5.043 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001025/0.204, allocations: 156.7 kB / 421.4 MB, free: 4.887 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.204, allocations: 0 / 421.4 MB, free: 4.887 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001846/0.2058, allocations: 1.01 MB / 422.4 MB, free: 3.875 MB / 410.7 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.002413/0.2082, allocations: 1.378 MB / 423.8 MB, free: 2.484 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002908/0.2085, allocations: 254.2 kB / 424 MB, free: 2.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/0.2085, allocations: 12.05 kB / 424 MB, free: 2.219 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.2087, allocations: 201.8 kB / 424.2 MB, free: 2.023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.2093, allocations: 245.2 kB / 424.5 MB, free: 1.789 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.214, allocations: 1.358 MB / 425.8 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.2141, allocations: 181.5 kB / 426 MB, free: 200 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.2144, allocations: 258.6 kB / 426.2 MB, free: 15.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/0.2146, allocations: 201.1 kB / 426.4 MB, free: 15.75 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2146, allocations: 4 kB / 426.4 MB, free: 15.75 MB / 426.7 MB Notification: Performance of Templates: time 0.1613/0.376, allocations: 44.58 MB / 471 MB, free: 99.14 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.40952661447227]