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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 387.1 MB / 399.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 184.8 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 221.3 MB / 0.7872 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008496/0.0008495, allocations: 97.19 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.175e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2274, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.99/1.217, allocations: 397.3 MB / 1.6 GB, free: 0.7422 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/1.218, allocations: 94.62 kB / 1.6 GB, free: 0.6914 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.048/2.266, allocations: 178.4 MB / 1.775 GB, free: 377.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.974e-06/2.266, allocations: 0 / 1.775 GB, free: 377.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.965e-05/2.266, allocations: 16.03 kB / 1.775 GB, free: 377.5 MB / 1.151 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.001158/2.267, allocations: 0.7449 MB / 1.775 GB, free: 377.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/2.268, allocations: 9.812 kB / 1.775 GB, free: 377.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/2.268, allocations: 61.2 kB / 1.776 GB, free: 377 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007322/2.268, allocations: 416.7 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/2.268, allocations: 21.22 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.735e-05/2.268, allocations: 32.53 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/2.269, allocations: 192.3 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/2.269, allocations: 3 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/2.269, allocations: 9.094 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/2.269, allocations: 4.594 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/2.269, allocations: 139.7 kB / 1.776 GB, free: 376.8 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.00158/2.271, allocations: 0.9481 MB / 1.777 GB, free: 376.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/2.271, allocations: 123.2 kB / 1.777 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.069e-05/2.271, allocations: 53.41 kB / 1.777 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/2.271, allocations: 342.5 kB / 1.778 GB, free: 375.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/2.271, allocations: 37.94 kB / 1.778 GB, free: 375.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/2.271, allocations: 0 / 1.778 GB, free: 375.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=14): time 0.0003356/2.272, allocations: 161.9 kB / 1.778 GB, free: 375.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/2.272, allocations: 54.16 kB / 1.778 GB, free: 375.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004706/2.272, allocations: 415.8 kB / 1.778 GB, free: 375.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/2.272, allocations: 38.94 kB / 1.778 GB, free: 375.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/2.272, allocations: 226.6 kB / 1.779 GB, free: 375.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/2.272, allocations: 44.2 kB / 1.779 GB, free: 375.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/2.273, allocations: 4.875 kB / 1.779 GB, free: 375.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.108e-05/2.273, allocations: 357.6 kB / 1.779 GB, free: 375.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/2.273, allocations: 49.58 kB / 1.779 GB, free: 375.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/2.273, allocations: 157.3 kB / 1.779 GB, free: 375.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/2.273, allocations: 75.73 kB / 1.779 GB, free: 375.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/2.273, allocations: 0 / 1.779 GB, free: 375.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003343/2.273, allocations: 221.4 kB / 1.779 GB, free: 375 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-05/2.273, allocations: 271.5 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/2.273, allocations: 8.891 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/2.273, allocations: 1.531 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/2.274, allocations: 47.44 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/2.274, allocations: 1.344 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/2.274, allocations: 56.95 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.541e-05/2.274, allocations: 9.031 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/2.274, allocations: 5.188 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002586/2.274, allocations: 152.9 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/2.274, allocations: 5.219 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.077e-06/2.274, allocations: 4.984 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/2.275, allocations: 49.89 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/2.275, allocations: 1.031 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/2.275, allocations: 43.61 kB / 1.78 GB, free: 374.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/2.275, allocations: 16.97 kB / 1.78 GB, free: 374.8 MB / 1.151 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 () * 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 7.151e-05/2.275, allocations: 118.6 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/2.275, allocations: 43.28 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000412/2.276, allocations: 230 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/2.276, allocations: 2.25 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/2.276, allocations: 1.062 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/2.276, allocations: 3.938 kB / 1.78 GB, free: 374.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007966/2.276, allocations: 0.6865 MB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/2.276, allocations: 1.875 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/2.277, allocations: 30.86 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/2.277, allocations: 2.719 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/2.277, allocations: 9.5 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/2.277, allocations: 5.938 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/2.277, allocations: 1.688 kB / 1.781 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/2.277, allocations: 363.7 kB / 1.782 GB, free: 374 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/2.277, allocations: 152.9 kB / 1.782 GB, free: 373.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/2.277, allocations: 6.188 kB / 1.782 GB, free: 373.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/2.277, allocations: 29.61 kB / 1.782 GB, free: 373.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/2.277, allocations: 13.7 kB / 1.782 GB, free: 373.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/2.278, allocations: 7.875 kB / 1.782 GB, free: 373.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003538/2.278, allocations: 326 kB / 1.782 GB, free: 373.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.31e-07/2.278, allocations: 3.75 kB / 1.782 GB, free: 373.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0008045/2.279, allocations: 230.8 kB / 1.782 GB, free: 373.7 MB / 1.151 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 () * 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.001214/2.28, allocations: 0.5435 MB / 1.783 GB, free: 373.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0005006/2.28, allocations: 246.4 kB / 1.783 GB, free: 373.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/2.28, allocations: 1.062 kB / 1.783 GB, free: 373.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/2.281, allocations: 68.64 kB / 1.783 GB, free: 373.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/2.282, allocations: 216 kB / 1.783 GB, free: 373.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009472/2.283, allocations: 0.5029 MB / 1.784 GB, free: 373.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/2.283, allocations: 0.8387 MB / 1.785 GB, free: 372.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0004239/2.283, allocations: 131.6 kB / 1.785 GB, free: 372.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/2.283, allocations: 25.75 kB / 1.785 GB, free: 372.7 MB / 1.151 GB Notification: Performance of SimCode: time 2.81e-07/2.283, allocations: 1.406 kB / 1.785 GB, free: 372.7 MB / 1.151 GB Notification: Performance of Templates: time 0.01761/2.301, allocations: 10.33 MB / 1.795 GB, free: 372.3 MB / 1.151 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