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.0008168/0.0008168, allocations: 92 kB / 15.06 MB, free: 1.098 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.001323/0.001323, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 223.3 MB / 240 MB, free: 5.438 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.44/2.44, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003572, allocations: 11.94 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7895/0.7899, allocations: 142.4 MB / 0.9544 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01572/0.8057, allocations: 17.79 MB / 0.9718 GB, free: 9.582 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007255/0.813, allocations: 4.848 MB / 0.9765 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006705/0.8137, allocations: 23.12 kB / 0.9766 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000665/0.8144, allocations: 186.1 kB / 0.9767 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.816, allocations: 0.6161 MB / 0.9773 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001949/0.818, allocations: 0.7385 MB / 0.9781 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002309/0.8203, allocations: 1.687 MB / 0.9797 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009643/0.8213, allocations: 416.1 kB / 0.9801 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.823, allocations: 0.5397 MB / 0.9806 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.824, allocations: 0.4885 MB / 0.9811 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.8241, allocations: 28.34 kB / 0.9811 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.8257, allocations: 0.595 MB / 0.9817 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.8259, allocations: 130.2 kB / 0.9818 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.8261, allocations: 154.3 kB / 0.982 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009665/0.8271, allocations: 0.7417 MB / 0.9827 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.8271, allocations: 4 kB / 0.9827 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.906e-06/0.8271, allocations: 1.438 kB / 0.9827 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.8271, allocations: 3.938 kB / 0.9827 GB, free: 1.609 MB / 0.7325 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.001818/0.8289, allocations: 0.9933 MB / 0.9837 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.829, allocations: 13.03 kB / 0.9837 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.8291, allocations: 82.88 kB / 0.9838 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000746/0.8299, allocations: 484.9 kB / 0.9842 GB, free: 360 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.8299, allocations: 37.38 kB / 0.9843 GB, free: 340 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.942e-05/0.83, allocations: 52.36 kB / 0.9843 GB, free: 320 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.8312, allocations: 0.6345 MB / 0.985 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.8312, allocations: 5.312 kB / 0.985 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.501e-05/0.8313, allocations: 21.12 kB / 0.985 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.8313, allocations: 13.19 kB / 0.985 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.8324, allocations: 0.5125 MB / 0.9855 GB, free: 15.5 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.00325/0.8357, allocations: 3.197 MB / 0.9886 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.8363, allocations: 361.5 kB / 0.989 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.8368, allocations: 248.2 kB / 0.9892 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/0.8373, allocations: 344.4 kB / 0.9895 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.8373, allocations: 30.56 kB / 0.9895 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=38): time 2.034e-06/0.8373, allocations: 4 kB / 0.9896 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of matching and sorting (n=38): time 0.002075/0.8394, allocations: 0.8739 MB / 0.9904 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.8394, allocations: 55.41 kB / 0.9905 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006838/0.8401, allocations: 0.5822 MB / 0.991 GB, free: 9.488 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.8402, allocations: 33.7 kB / 0.9911 GB, free: 9.449 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.8404, allocations: 328.3 kB / 0.9914 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.8405, allocations: 130.2 kB / 0.9915 GB, free: 8.996 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.8406, allocations: 15.94 kB / 0.9915 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.8408, allocations: 374.8 kB / 0.9919 GB, free: 8.605 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.8412, allocations: 221.2 kB / 0.9921 GB, free: 8.391 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000566/0.8418, allocations: 376 kB / 0.9924 GB, free: 7.961 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.8423, allocations: 256.7 kB / 0.9927 GB, free: 7.711 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.8423, allocations: 0 / 0.9927 GB, free: 7.711 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001409/0.8438, allocations: 0.7338 MB / 0.9934 GB, free: 6.965 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.8439, allocations: 223.7 kB / 0.9936 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.844, allocations: 4 kB / 0.9936 GB, free: 6.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005762/0.8445, allocations: 148.7 kB / 0.9938 GB, free: 6.531 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006078/0.8452, allocations: 155.7 kB / 0.9939 GB, free: 6.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006013/0.8458, allocations: 0.6227 MB / 0.9945 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006379/0.8464, allocations: 119.2 kB / 0.9946 GB, free: 5.613 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.559e-05/0.8465, allocations: 31.98 kB / 0.9947 GB, free: 5.582 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.218e-06/0.8465, allocations: 4 kB / 0.9947 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001193/0.8477, allocations: 0.6189 MB / 0.9953 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.8477, allocations: 4 kB / 0.9953 GB, free: 4.957 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.8478, allocations: 8 kB / 0.9953 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/0.8483, allocations: 168.3 kB / 0.9954 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.8484, allocations: 8 kB / 0.9954 GB, free: 4.777 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/0.8489, allocations: 83.55 kB / 0.9955 GB, free: 4.695 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.849, allocations: 31.98 kB / 0.9956 GB, free: 4.664 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003311/0.8493, allocations: 280.6 kB / 0.9958 GB, free: 4.379 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.8494, allocations: 67.2 kB / 0.9959 GB, free: 4.312 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.851, allocations: 0.6742 MB / 0.9965 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.851, allocations: 4 kB / 0.9966 GB, free: 3.621 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.851, allocations: 4 kB / 0.9966 GB, free: 3.617 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.8511, allocations: 0 / 0.9966 GB, free: 3.617 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.8546, allocations: 1.398 MB / 0.9979 GB, free: 2.145 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.8546, allocations: 96 / 0.9979 GB, free: 2.145 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.8551, allocations: 95.88 kB / 0.998 GB, free: 2.051 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005507/0.8557, allocations: 132.7 kB / 0.9981 GB, free: 1.918 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/0.8557, allocations: 19.94 kB / 0.9982 GB, free: 1.898 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006252/0.8564, allocations: 0.6382 MB / 0.9988 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.8564, allocations: 0 / 0.9988 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.8577, allocations: 0.7284 MB / 0.9995 GB, free: 492 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.858, allocations: 196.1 kB / 0.9997 GB, free: 276 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-05/0.8581, allocations: 8 kB / 0.9997 GB, free: 268 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.8585, allocations: 59.94 kB / 0.9997 GB, free: 208 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.8586, allocations: 27.95 kB / 0.9998 GB, free: 180 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.769e-05/0.8586, allocations: 16 kB / 0.9998 GB, free: 164 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004948/0.8591, allocations: 399 kB / 1 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8591, allocations: 4 kB / 1 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001187/0.8603, allocations: 391.3 kB / 1.001 GB, free: 15.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007651/0.8611, allocations: 300.5 kB / 1.001 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002108/0.8632, allocations: 0.9178 MB / 1.002 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.8632, allocations: 4 kB / 1.002 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.864, allocations: 299.8 kB / 1.002 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.8654, allocations: 269.8 kB / 1.002 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.8675, allocations: 1.295 MB / 1.004 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.868, allocations: 0.9158 MB / 1.004 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006252/0.8686, allocations: 152.1 kB / 1.005 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.8688, allocations: 63.41 kB / 1.005 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of SimCode: time 8.72e-07/0.8688, allocations: 0 / 1.005 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of Templates: time 0.02654/0.8954, allocations: 11.75 MB / 1.016 GB, free: 15.55 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/jenkins/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