Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 179.6 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 11.94 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8216/0.822, allocations: 142.4 MB / 0.9557 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03087/0.8529, allocations: 28.93 MB / 0.984 GB, free: 448 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01399/0.8669, allocations: 8.129 MB / 0.9919 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.8691, allocations: 28.31 kB / 0.9919 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.8705, allocations: 341.9 kB / 0.9922 GB, free: 9.551 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004972/0.8755, allocations: 1.224 MB / 0.9934 GB, free: 8.582 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003651/0.8792, allocations: 1.04 MB / 0.9945 GB, free: 7.555 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006141/0.8853, allocations: 4.207 MB / 0.9986 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002524/0.8879, allocations: 1.165 MB / 0.9997 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003742/0.8916, allocations: 1.495 MB / 1.001 GB, free: 0.6602 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003449/0.8951, allocations: 1.597 MB / 1.003 GB, free: 15.06 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007265/0.8959, allocations: 68 kB / 1.003 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.8989, allocations: 0.9318 MB / 1.004 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0008543/0.8998, allocations: 338.7 kB / 1.004 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001866/0.9016, allocations: 0.7092 MB / 1.005 GB, free: 13.01 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002689/0.9044, allocations: 1.547 MB / 1.006 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.9044, allocations: 0 / 1.006 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.715e-06/0.9044, allocations: 0 / 1.006 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.362e-05/0.9045, allocations: 0 / 1.006 GB, free: 11.46 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00292/0.9074, allocations: 1.332 MB / 1.008 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.9075, allocations: 8.031 kB / 1.008 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/0.9079, allocations: 155.3 kB / 1.008 GB, free: 9.91 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.9096, allocations: 0.8947 MB / 1.009 GB, free: 8.957 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.281e-05/0.9096, allocations: 77.31 kB / 1.009 GB, free: 8.883 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.9099, allocations: 120 kB / 1.009 GB, free: 8.766 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.911, allocations: 0.6434 MB / 1.009 GB, free: 8.094 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.9111, allocations: 0 / 1.009 GB, free: 8.094 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.328e-05/0.9111, allocations: 24 kB / 1.009 GB, free: 8.07 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.9111, allocations: 12 kB / 1.009 GB, free: 8.059 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009179/0.9121, allocations: 488.8 kB / 1.01 GB, free: 7.578 MB / 0.7637 GB 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.004618/0.9167, allocations: 2.875 MB / 1.013 GB, free: 4.551 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.9173, allocations: 320.6 kB / 1.013 GB, free: 4.23 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.9177, allocations: 157.3 kB / 1.013 GB, free: 4.074 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003564/0.918, allocations: 352.7 kB / 1.013 GB, free: 3.656 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.9181, allocations: 30.84 kB / 1.014 GB, free: 3.617 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 2.445e-06/0.9181, allocations: 0 / 1.014 GB, free: 3.617 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.001347/0.9194, allocations: 0.5439 MB / 1.014 GB, free: 3.066 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.9195, allocations: 55.41 kB / 1.014 GB, free: 3 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.9206, allocations: 0.9113 MB / 1.015 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.9208, allocations: 61.69 kB / 1.015 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000521/0.9213, allocations: 0.5263 MB / 1.016 GB, free: 1.469 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.9214, allocations: 114.4 kB / 1.016 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.9215, allocations: 61.69 kB / 1.016 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9216, allocations: 334.1 kB / 1.016 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.9221, allocations: 189.2 kB / 1.016 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.9235, allocations: 1.159 MB / 1.017 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008516/0.9244, allocations: 471.4 kB / 1.018 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.9244, allocations: 0 / 1.018 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001396/0.9258, allocations: 0.6696 MB / 1.018 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.9259, allocations: 156.1 kB / 1.019 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.9259, allocations: 7.984 kB / 1.019 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.926, allocations: 4 kB / 1.019 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.9274, allocations: 235.7 kB / 1.019 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.9292, allocations: 2.961 MB / 1.022 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003534/0.9328, allocations: 0.7574 MB / 1.022 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.913e-05/0.9328, allocations: 23.98 kB / 1.022 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.9329, allocations: 4 kB / 1.022 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001022/0.9339, allocations: 0.5088 MB / 1.023 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.9339, allocations: 0 / 1.023 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.836e-06/0.9339, allocations: 4 kB / 1.023 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/0.9346, allocations: 159.8 kB / 1.023 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.9346, allocations: 4 kB / 1.023 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003397/0.938, allocations: 0.7341 MB / 1.024 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.278e-05/0.9381, allocations: 31.98 kB / 1.024 GB, free: 8.359 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006761/0.9388, allocations: 329.8 kB / 1.024 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.939, allocations: 98.72 kB / 1.024 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.9402, allocations: 0.5319 MB / 1.025 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.9402, allocations: 4 kB / 1.025 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9403, allocations: 0 / 1.025 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.9403, allocations: 3.984 kB / 1.025 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.9424, allocations: 1.272 MB / 1.026 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.9424, allocations: 0 / 1.026 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.9429, allocations: 124 kB / 1.026 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.943, allocations: 4 kB / 1.026 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.943, allocations: 11.98 kB / 1.026 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/0.9446, allocations: 2.946 MB / 1.029 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.9446, allocations: 0 / 1.029 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009589/0.9456, allocations: 0.5777 MB / 1.03 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003649/0.946, allocations: 231.7 kB / 1.03 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.53e-05/0.9461, allocations: 8 kB / 1.03 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.9466, allocations: 63.78 kB / 1.03 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.9467, allocations: 31.91 kB / 1.03 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/0.9468, allocations: 19.98 kB / 1.03 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008157/0.9476, allocations: 0.6084 MB / 1.031 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9476, allocations: 0 / 1.031 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00166/0.9493, allocations: 0.5306 MB / 1.031 GB, free: 0.7227 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008175/0.9501, allocations: 329.8 kB / 1.031 GB, free: 408 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002771/0.9529, allocations: 0.8634 MB / 1.032 GB, free: 15.54 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.9529, allocations: 3.938 kB / 1.032 GB, free: 15.54 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006186/0.9535, allocations: 240.2 kB / 1.032 GB, free: 15.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.9564, allocations: 471.9 kB / 1.033 GB, free: 14.84 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.9593, allocations: 1.922 MB / 1.035 GB, free: 12.88 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.9599, allocations: 1.033 MB / 1.036 GB, free: 11.81 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.9602, allocations: 83.41 kB / 1.036 GB, free: 11.73 MB / 0.795 GB Notification: Performance of SimCode: time 6.91e-07/0.9602, allocations: 0 / 1.036 GB, free: 11.73 MB / 0.795 GB Notification: Performance of Templates: time 0.04523/1.005, allocations: 36.26 MB / 1.071 GB, free: 7.715 MB / 0.8262 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches