Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001096/0.001096, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.01129/0.01129, allocations: 170.3 kB / 16.27 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.545/1.545, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.678/2.678, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003931, allocations: 12 kB / 0.8728 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8896/0.89, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01758/0.9077, allocations: 14.96 MB / 1.038 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007639/0.9154, allocations: 4.296 MB / 1.042 GB, free: 12.5 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007336/0.9161, allocations: 19.81 kB / 1.042 GB, free: 12.48 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.9172, allocations: 222.8 kB / 1.042 GB, free: 12.26 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.919, allocations: 0.5443 MB / 1.043 GB, free: 11.71 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.9214, allocations: 0.6478 MB / 1.043 GB, free: 11.07 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002212/0.9236, allocations: 1.302 MB / 1.044 GB, free: 9.762 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006029/0.9242, allocations: 291 kB / 1.045 GB, free: 9.48 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009893/0.9252, allocations: 378.3 kB / 1.045 GB, free: 9.109 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.9258, allocations: 314.5 kB / 1.045 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.9259, allocations: 16 kB / 1.045 GB, free: 8.785 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.9276, allocations: 0.6004 MB / 1.046 GB, free: 8.184 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.9278, allocations: 91.53 kB / 1.046 GB, free: 8.094 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003357/0.9282, allocations: 236.4 kB / 1.046 GB, free: 7.855 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.9295, allocations: 0.7243 MB / 1.047 GB, free: 7.129 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.112e-05/0.9295, allocations: 0 / 1.047 GB, free: 7.129 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.115e-06/0.9295, allocations: 7.875 kB / 1.047 GB, free: 7.121 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.9295, allocations: 0 / 1.047 GB, free: 7.121 MB / 0.795 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.001501/0.931, allocations: 0.7514 MB / 1.048 GB, free: 6.32 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.9311, allocations: 8.031 kB / 1.048 GB, free: 6.312 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.9312, allocations: 52.38 kB / 1.048 GB, free: 6.262 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006439/0.9319, allocations: 417.2 kB / 1.048 GB, free: 5.812 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.9319, allocations: 20.44 kB / 1.048 GB, free: 5.793 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.605e-05/0.932, allocations: 28 kB / 1.048 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004913/0.9325, allocations: 219.2 kB / 1.049 GB, free: 5.547 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.9325, allocations: 0 / 1.049 GB, free: 5.547 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.9325, allocations: 12 kB / 1.049 GB, free: 5.535 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.9325, allocations: 4 kB / 1.049 GB, free: 5.531 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.9329, allocations: 177.6 kB / 1.049 GB, free: 5.355 MB / 0.795 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.001702/0.9346, allocations: 0.9612 MB / 1.05 GB, free: 4.312 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003045/0.935, allocations: 138.6 kB / 1.05 GB, free: 4.168 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.9351, allocations: 72.83 kB / 1.05 GB, free: 4.094 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003082/0.9355, allocations: 336.4 kB / 1.05 GB, free: 3.691 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.9355, allocations: 34.56 kB / 1.05 GB, free: 3.648 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.9355, allocations: 0 / 1.05 GB, free: 3.648 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0006446/0.9361, allocations: 258.4 kB / 1.05 GB, free: 3.391 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.9362, allocations: 59.41 kB / 1.05 GB, free: 3.32 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.9367, allocations: 477.9 kB / 1.051 GB, free: 2.84 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.9368, allocations: 29.7 kB / 1.051 GB, free: 2.805 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.937, allocations: 224.6 kB / 1.051 GB, free: 2.582 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.496e-05/0.937, allocations: 51.42 kB / 1.051 GB, free: 2.531 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/0.9371, allocations: 29.7 kB / 1.051 GB, free: 2.496 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.9373, allocations: 358.7 kB / 1.052 GB, free: 2.137 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.9375, allocations: 67.95 kB / 1.052 GB, free: 2.07 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.9377, allocations: 167.5 kB / 1.052 GB, free: 1.879 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.9381, allocations: 172.4 kB / 1.052 GB, free: 1.703 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.9381, allocations: 4 kB / 1.052 GB, free: 1.699 MB / 0.795 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005006/0.9386, allocations: 261 kB / 1.052 GB, free: 1.438 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/0.9387, allocations: 106.7 kB / 1.052 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.9387, allocations: 0 / 1.052 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.9387, allocations: 4.094 kB / 1.052 GB, free: 1.316 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.939, allocations: 55.89 kB / 1.052 GB, free: 1.262 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.939, allocations: 7.938 kB / 1.052 GB, free: 1.254 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003992/0.9394, allocations: 47.75 kB / 1.052 GB, free: 1.207 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.9394, allocations: 8 kB / 1.052 GB, free: 1.199 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.203e-06/0.9394, allocations: 5.25 kB / 1.052 GB, free: 1.195 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003985/0.9398, allocations: 187.7 kB / 1.053 GB, free: 1.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.9399, allocations: 4 kB / 1.053 GB, free: 1.008 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.908e-06/0.9399, allocations: 4 kB / 1.053 GB, free: 1.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.9401, allocations: 51.91 kB / 1.053 GB, free: 0.9531 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-06/0.9401, allocations: 0 / 1.053 GB, free: 0.9531 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.9404, allocations: 43.72 kB / 1.053 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.9404, allocations: 12 kB / 1.053 GB, free: 0.8984 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000202/0.9406, allocations: 250.5 kB / 1.053 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.9407, allocations: 39.53 kB / 1.053 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006047/0.9413, allocations: 258.1 kB / 1.053 GB, free: 352 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.9413, allocations: 3.984 kB / 1.053 GB, free: 348 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9413, allocations: 0 / 1.053 GB, free: 348 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.9413, allocations: 4 kB / 1.053 GB, free: 344 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000996/0.9423, allocations: 0.7172 MB / 1.054 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.9424, allocations: 0 / 1.054 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.9425, allocations: 35.92 kB / 1.054 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.9425, allocations: 0 / 1.054 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.9425, allocations: 8.125 kB / 1.054 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.9425, allocations: 3.984 kB / 1.054 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.9425, allocations: 7.938 kB / 1.054 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004708/0.943, allocations: 352.6 kB / 1.054 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.9432, allocations: 144.5 kB / 1.055 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.971e-05/0.9432, allocations: 8 kB / 1.055 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.9434, allocations: 23.97 kB / 1.055 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.9435, allocations: 19.92 kB / 1.055 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.9435, allocations: 4.094 kB / 1.055 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003422/0.9439, allocations: 338.8 kB / 1.055 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.475e-06/0.9439, allocations: 0 / 1.055 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006664/0.9446, allocations: 207.5 kB / 1.055 GB, free: 14.38 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/0.9458, allocations: 481.2 kB / 1.056 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006868/0.9465, allocations: 289.3 kB / 1.056 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.9466, allocations: 0 / 1.056 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.9468, allocations: 92.08 kB / 1.056 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.9482, allocations: 224.6 kB / 1.056 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.9496, allocations: 0.8546 MB / 1.057 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.95, allocations: 0.8272 MB / 1.058 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002922/0.9503, allocations: 91.16 kB / 1.058 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.121e-05/0.9504, allocations: 35.44 kB / 1.058 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.9504, allocations: 7.938 kB / 1.058 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of Templates: time 0.0181/0.9685, allocations: 8.276 MB / 1.066 GB, free: 3.426 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches