Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009502/0.0009503, allocations: 91.92 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.001445/0.001445, allocations: 179.3 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.472/1.472, allocations: 223.3 MB / 241 MB, free: 5.293 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.663/2.663, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 8.281 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8537/0.854, allocations: 142.4 MB / 0.9557 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01866/0.8727, allocations: 18.77 MB / 0.974 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008801/0.8816, allocations: 5.12 MB / 0.979 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.8829, allocations: 19.59 kB / 0.9791 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009757/0.8839, allocations: 206.7 kB / 0.9793 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002884/0.8868, allocations: 0.7103 MB / 0.9799 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002613/0.8894, allocations: 0.78 MB / 0.9807 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003205/0.8926, allocations: 1.949 MB / 0.9826 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009607/0.8936, allocations: 440.8 kB / 0.983 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.8952, allocations: 0.5625 MB / 0.9836 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.8964, allocations: 0.5122 MB / 0.9841 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.8966, allocations: 27.44 kB / 0.9841 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001702/0.8983, allocations: 0.6595 MB / 0.9848 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.8985, allocations: 138 kB / 0.9849 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006764/0.8992, allocations: 373.1 kB / 0.9852 GB, free: 376 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.9005, allocations: 0.7598 MB / 0.986 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.9005, allocations: 1.438 kB / 0.986 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.715e-06/0.9006, allocations: 0 / 0.986 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.017e-05/0.9006, allocations: 0 / 0.986 GB, free: 15.88 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002488/0.9031, allocations: 0.9864 MB / 0.9869 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.9032, allocations: 9.438 kB / 0.987 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002609/0.9034, allocations: 92.59 kB / 0.987 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009554/0.9044, allocations: 0.4977 MB / 0.9875 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.9044, allocations: 37 kB / 0.9876 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-05/0.9045, allocations: 52 kB / 0.9876 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.9059, allocations: 0.6411 MB / 0.9882 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.9059, allocations: 3.938 kB / 0.9882 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.461e-05/0.906, allocations: 20 kB / 0.9883 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/0.906, allocations: 12 kB / 0.9883 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.9075, allocations: 0.5151 MB / 0.9888 GB, free: 13.22 MB / 0.7481 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.004983/0.9125, allocations: 3.204 MB / 0.9919 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.9136, allocations: 364 kB / 0.9923 GB, free: 9.461 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007282/0.9143, allocations: 240.7 kB / 0.9925 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004782/0.9148, allocations: 348.4 kB / 0.9928 GB, free: 8.809 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.9149, allocations: 46.56 kB / 0.9929 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=38): time 2.826e-06/0.9149, allocations: 0 / 0.9929 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of matching and sorting (n=38): time 0.003188/0.9181, allocations: 0.8727 MB / 0.9937 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.9182, allocations: 55.41 kB / 0.9938 GB, free: 7.785 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000985/0.9191, allocations: 0.5901 MB / 0.9943 GB, free: 7.184 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.797e-05/0.9192, allocations: 29.7 kB / 0.9944 GB, free: 7.148 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.9195, allocations: 336.4 kB / 0.9947 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.9197, allocations: 134 kB / 0.9948 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.466e-05/0.9198, allocations: 57.69 kB / 0.9949 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.92, allocations: 374.8 kB / 0.9952 GB, free: 6.246 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.9207, allocations: 225.2 kB / 0.9954 GB, free: 6.027 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008059/0.9215, allocations: 380 kB / 0.9958 GB, free: 5.594 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.923, allocations: 0.6017 MB / 0.9964 GB, free: 4.934 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.923, allocations: 0 / 0.9964 GB, free: 4.934 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002206/0.9252, allocations: 0.7457 MB / 0.9971 GB, free: 4.176 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001952/0.9254, allocations: 219.6 kB / 0.9973 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.9255, allocations: 8 kB / 0.9973 GB, free: 3.891 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/0.9263, allocations: 160.8 kB / 0.9975 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.9271, allocations: 143.7 kB / 0.9976 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008125/0.9279, allocations: 0.6226 MB / 0.9982 GB, free: 2.941 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.929, allocations: 107.3 kB / 0.9983 GB, free: 2.836 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.9291, allocations: 31.98 kB / 0.9984 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.9291, allocations: 7.938 kB / 0.9984 GB, free: 2.797 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001778/0.9309, allocations: 0.6191 MB / 0.999 GB, free: 2.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.9309, allocations: 4 kB / 0.999 GB, free: 2.172 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.9309, allocations: 11.98 kB / 0.999 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007848/0.9317, allocations: 164.2 kB / 0.9992 GB, free: 2 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.9318, allocations: 19.92 kB / 0.9992 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008794/0.9327, allocations: 83.53 kB / 0.9993 GB, free: 1.898 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.281e-05/0.9327, allocations: 31.98 kB / 0.9993 GB, free: 1.867 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004388/0.9332, allocations: 272.9 kB / 0.9995 GB, free: 1.59 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.9334, allocations: 67.16 kB / 0.9996 GB, free: 1.523 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.9354, allocations: 0.6734 MB / 1 GB, free: 0.8398 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.9354, allocations: 8 kB / 1 GB, free: 0.832 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.9354, allocations: 4 kB / 1 GB, free: 0.8281 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.9355, allocations: 3.984 kB / 1 GB, free: 0.8242 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.939, allocations: 1.398 MB / 1.002 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.939, allocations: 0 / 1.002 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000521/0.9396, allocations: 96.02 kB / 1.002 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005633/0.9401, allocations: 128.8 kB / 1.002 GB, free: 15.13 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.9402, allocations: 19.98 kB / 1.002 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007773/0.941, allocations: 0.642 MB / 1.003 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.941, allocations: 7.922 kB / 1.003 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.9428, allocations: 0.7319 MB / 1.003 GB, free: 13.67 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000448/0.9433, allocations: 200 kB / 1.003 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.9434, allocations: 11.98 kB / 1.003 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.944, allocations: 51.95 kB / 1.003 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.94e-05/0.9441, allocations: 31.95 kB / 1.004 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.9442, allocations: 19.98 kB / 1.004 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007029/0.9449, allocations: 399.1 kB / 1.004 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9449, allocations: 0 / 1.004 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001712/0.9466, allocations: 391.3 kB / 1.004 GB, free: 12.58 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008915/0.9475, allocations: 307.9 kB / 1.005 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002936/0.9505, allocations: 0.9136 MB / 1.005 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.9505, allocations: 0 / 1.005 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.9515, allocations: 299.9 kB / 1.006 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.9539, allocations: 276.2 kB / 1.006 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.9569, allocations: 1.363 MB / 1.007 GB, free: 9.41 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006505/0.9575, allocations: 0.908 MB / 1.008 GB, free: 8.477 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.9578, allocations: 71.34 kB / 1.008 GB, free: 8.406 MB / 0.7637 GB Notification: Performance of SimCode: time 5.01e-07/0.9578, allocations: 0 / 1.008 GB, free: 8.406 MB / 0.7637 GB Notification: Performance of Templates: time 0.02495/0.9828, allocations: 12.93 MB / 1.021 GB, free: 11.56 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches