Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 106.4 kB / 17.03 MB, free: 5.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 194.9 kB / 17.96 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2459/0.2459, allocations: 43.52 MB / 314.7 MB, free: 488 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002518/0.002518, allocations: 68 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1351, allocations: 57.79 MB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.035/0.1701, allocations: 28.11 MB / 470.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01728/0.1874, allocations: 13.3 MB / 483.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006679/0.1881, allocations: 7.938 kB / 483.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.1892, allocations: 250.4 kB / 483.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01336/0.2026, allocations: 3.654 MB / 487.3 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.214, allocations: 2.363 MB / 489.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.2162, allocations: 0.8964 MB / 490.5 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005898/0.2168, allocations: 244.8 kB / 490.8 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001093/0.2179, allocations: 434.2 kB / 491.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004141/0.2183, allocations: 270.9 kB / 491.5 MB, free: 4.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.2184, allocations: 32 kB / 491.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01713/0.2355, allocations: 7.227 MB / 498.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.2358, allocations: 95.66 kB / 498.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.2362, allocations: 226.9 kB / 499 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01251/0.2487, allocations: 4.394 MB / 0.4916 GB, free: 8.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.435e-05/0.2488, allocations: 3.938 kB / 0.4916 GB, free: 8.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.533e-06/0.2488, allocations: 3.984 kB / 0.4916 GB, free: 8.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.2488, allocations: 0 / 0.4916 GB, free: 8.488 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.003871/0.2527, allocations: 1.224 MB / 0.4928 GB, free: 7.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.2528, allocations: 15.89 kB / 0.4929 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.2545, allocations: 212.2 kB / 0.4931 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000687/0.2552, allocations: 383.2 kB / 0.4934 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.2552, allocations: 25.03 kB / 0.4934 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.2553, allocations: 32.31 kB / 0.4935 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.2568, allocations: 0.5783 MB / 0.494 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2568, allocations: 3.938 kB / 0.494 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.2569, allocations: 16 kB / 0.4941 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.2569, allocations: 8 kB / 0.4941 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.2584, allocations: 0.525 MB / 0.4946 GB, free: 5.348 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.003062/0.2615, allocations: 2.625 MB / 0.4971 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.263, allocations: 454.2 kB / 0.4976 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004063/0.2634, allocations: 192.7 kB / 0.4978 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04772/0.3111, allocations: 24.31 MB / 0.5215 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.3112, allocations: 38.56 kB / 0.5215 GB, free: 6.598 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.234e-06/0.3112, allocations: 0 / 0.5215 GB, free: 6.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003179/0.3144, allocations: 0.7903 MB / 0.5223 GB, free: 5.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/0.3145, allocations: 110.8 kB / 0.5224 GB, free: 5.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.3149, allocations: 308.5 kB / 0.5227 GB, free: 5.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.3149, allocations: 33.7 kB / 0.5227 GB, free: 5.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.3151, allocations: 200.2 kB / 0.5229 GB, free: 5.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.658e-05/0.3152, allocations: 90.73 kB / 0.523 GB, free: 5.031 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3153, allocations: 69.69 kB / 0.5231 GB, free: 4.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3154, allocations: 338.8 kB / 0.5234 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.3158, allocations: 147.8 kB / 0.5236 GB, free: 4.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004171/0.3162, allocations: 235 kB / 0.5238 GB, free: 4.203 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007253/0.3169, allocations: 349.1 kB / 0.5241 GB, free: 3.828 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3169, allocations: 4 kB / 0.5241 GB, free: 3.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009484/0.3179, allocations: 421.9 kB / 0.5245 GB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3179, allocations: 12.06 kB / 0.5245 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.318, allocations: 4 kB / 0.5245 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.318, allocations: 7.938 kB / 0.5245 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.3183, allocations: 83.88 kB / 0.5246 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.3183, allocations: 4 kB / 0.5246 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.3186, allocations: 43.72 kB / 0.5247 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.3186, allocations: 15.94 kB / 0.5247 GB, free: 3.238 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.0001787/0.3188, allocations: 169.6 kB / 0.5248 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.3189, allocations: 39.53 kB / 0.5249 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.3212, allocations: 1.881 MB / 0.5267 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.422e-05/0.3213, allocations: 31.89 kB / 0.5267 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3213, allocations: 0 / 0.5267 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3213, allocations: 7.984 kB / 0.5268 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.3224, allocations: 1.012 MB / 0.5277 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3224, allocations: 0 / 0.5277 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2793/0.6017, allocations: 81.08 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.6018, allocations: 0 / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-05/0.6019, allocations: 6.906 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.6019, allocations: 4.875 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6019, allocations: 0 / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.6039, allocations: 1.079 MB / 0.5289 GB, free: 93.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.6041, allocations: 170.5 kB / 0.529 GB, free: 93.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.6042, allocations: 21.84 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.6045, allocations: 23.02 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.6046, allocations: 32.75 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.6046, allocations: 17.61 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003875/0.605, allocations: 327.6 kB / 0.5294 GB, free: 93.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.605, allocations: 0 / 0.5294 GB, free: 93.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003863/0.6089, allocations: 0.9959 MB / 0.5304 GB, free: 93.27 MB / 414.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.004832/0.6137, allocations: 1.151 MB / 0.5315 GB, free: 93.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.6153, allocations: 0.5923 MB / 0.5321 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6153, allocations: 0 / 0.5321 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000836/0.6161, allocations: 0.5077 MB / 0.5326 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.6173, allocations: 223 kB / 0.5328 GB, free: 93.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.6197, allocations: 1.5 MB / 0.5343 GB, free: 92.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007091/0.6205, allocations: 0.9631 MB / 0.5352 GB, free: 91.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007163/0.6212, allocations: 277.7 kB / 0.5355 GB, free: 91.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.6214, allocations: 40.42 kB / 0.5355 GB, free: 91.93 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/0.6214, allocations: 2.406 kB / 0.5355 GB, free: 91.93 MB / 414.1 MB Notification: Performance of Templates: time 0.05024/0.6716, allocations: 39.28 MB / 0.5739 GB, free: 61.12 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches