Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001328/0.001328, allocations: 177.3 kB / 15.95 MB, free: 216 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.431/1.431, allocations: 223.2 MB / 239.9 MB, free: 5.355 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.376/2.376, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003658, allocations: 8 kB / 0.8145 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8917/0.8921, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01403/0.9061, allocations: 13.11 MB / 0.9663 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007422/0.9136, allocations: 3.736 MB / 0.97 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008007/0.9145, allocations: 14.19 kB / 0.97 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.9155, allocations: 252.4 kB / 0.9702 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002237/0.9178, allocations: 0.6284 MB / 0.9708 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002699/0.9205, allocations: 0.7661 MB / 0.9716 GB, free: 9.598 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001748/0.9223, allocations: 0.6381 MB / 0.9722 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007328/0.923, allocations: 275.9 kB / 0.9725 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.9241, allocations: 337.5 kB / 0.9728 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005397/0.9247, allocations: 236 kB / 0.973 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.9248, allocations: 14.97 kB / 0.973 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.9261, allocations: 396.9 kB / 0.9734 GB, free: 8.484 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.9263, allocations: 78.89 kB / 0.9735 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.9265, allocations: 106.3 kB / 0.9736 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007906/0.9273, allocations: 481 kB / 0.974 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.9273, allocations: 0 / 0.974 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.867e-06/0.9273, allocations: 0 / 0.974 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.9273, allocations: 3.938 kB / 0.974 GB, free: 8.055 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001368/0.9287, allocations: 0.7387 MB / 0.9748 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.9287, allocations: 9.125 kB / 0.9748 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.9289, allocations: 59.02 kB / 0.9748 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006719/0.9296, allocations: 397.2 kB / 0.9752 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.9296, allocations: 28.53 kB / 0.9752 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.558e-05/0.9297, allocations: 27.16 kB / 0.9753 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004768/0.9301, allocations: 214.9 kB / 0.9755 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.9302, allocations: 0 / 0.9755 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.9302, allocations: 10.97 kB / 0.9755 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.9302, allocations: 4.531 kB / 0.9755 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.9306, allocations: 174.4 kB / 0.9756 GB, free: 6.793 MB / 0.7325 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.001898/0.9325, allocations: 0.9476 MB / 0.9766 GB, free: 6 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.9329, allocations: 143.9 kB / 0.9767 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003905/0.9333, allocations: 343.7 kB / 0.977 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.9333, allocations: 32.75 kB / 0.9771 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.9334, allocations: 0 / 0.9771 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0007643/0.9341, allocations: 254.8 kB / 0.9773 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.9342, allocations: 57.28 kB / 0.9774 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006824/0.9349, allocations: 466.4 kB / 0.9778 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.9349, allocations: 32.42 kB / 0.9778 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.9352, allocations: 236.5 kB / 0.9781 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.9352, allocations: 45.48 kB / 0.9781 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.9352, allocations: 4.812 kB / 0.9781 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002063/0.9355, allocations: 353.5 kB / 0.9785 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.9357, allocations: 70.05 kB / 0.9785 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/0.936, allocations: 156.1 kB / 0.9787 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.9362, allocations: 88.17 kB / 0.9788 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.9362, allocations: 3.953 kB / 0.9788 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005687/0.9368, allocations: 266.7 kB / 0.979 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.937, allocations: 269.7 kB / 0.9793 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.937, allocations: 0 / 0.9793 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.937, allocations: 3.031 kB / 0.9793 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.9373, allocations: 56.05 kB / 0.9793 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.9373, allocations: 2.844 kB / 0.9793 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.9377, allocations: 51.5 kB / 0.9794 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.9377, allocations: 10.89 kB / 0.9794 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.9377, allocations: 3.406 kB / 0.9794 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004522/0.9382, allocations: 195.2 kB / 0.9796 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-06/0.9382, allocations: 0 / 0.9796 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.04e-06/0.9382, allocations: 6.5 kB / 0.9796 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.9385, allocations: 48.75 kB / 0.9796 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-06/0.9385, allocations: 1.344 kB / 0.9796 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.9388, allocations: 39.31 kB / 0.9797 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.9388, allocations: 10.97 kB / 0.9797 GB, free: 3.578 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.939, allocations: 246 kB / 0.9799 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.126e-05/0.9391, allocations: 42.59 kB / 0.98 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006119/0.9397, allocations: 259.9 kB / 0.9802 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.9398, allocations: 1.156 kB / 0.9802 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.9398, allocations: 1.438 kB / 0.9802 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.9398, allocations: 3.938 kB / 0.9802 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.941, allocations: 0.7095 MB / 0.9809 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.941, allocations: 1.406 kB / 0.9809 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.9411, allocations: 37.08 kB / 0.9809 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.9411, allocations: 5.562 kB / 0.9809 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.9412, allocations: 7.859 kB / 0.9809 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.9412, allocations: 5.219 kB / 0.981 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.9412, allocations: 2.25 kB / 0.981 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.9418, allocations: 406.9 kB / 0.9813 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.942, allocations: 145.9 kB / 0.9815 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.9421, allocations: 6.078 kB / 0.9815 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.9423, allocations: 25.98 kB / 0.9815 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.9424, allocations: 10.33 kB / 0.9815 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.9424, allocations: 10.19 kB / 0.9815 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004508/0.9428, allocations: 328.3 kB / 0.9818 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9429, allocations: 4 kB / 0.9819 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008479/0.9437, allocations: 201.5 kB / 0.982 GB, free: 1.809 MB / 0.7325 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 (16): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00123/0.945, allocations: 475.2 kB / 0.9825 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007285/0.9457, allocations: 277.8 kB / 0.9828 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.9457, allocations: 4 kB / 0.9828 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.9459, allocations: 88.27 kB / 0.9828 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.9472, allocations: 223 kB / 0.9831 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.9487, allocations: 0.8401 MB / 0.9839 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005084/0.9492, allocations: 0.8389 MB / 0.9847 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003262/0.9495, allocations: 91.17 kB / 0.9848 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.9496, allocations: 35.42 kB / 0.9848 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of SimCode: time 8.01e-07/0.9496, allocations: 0 / 0.9848 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of Templates: time 0.01554/0.9652, allocations: 8.062 MB / 0.9927 GB, free: 7.664 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches