Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001716/0.001716, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.479/1.479, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.73/2.73, allocations: 437 MB / 0.71 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.89 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8934/0.8949, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01707/0.912, allocations: 17.38 MB / 1.034 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006436/0.9185, allocations: 4.879 MB / 1.039 GB, free: 12.38 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004915/0.919, allocations: 11.94 kB / 1.039 GB, free: 12.37 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008116/0.9198, allocations: 222.9 kB / 1.039 GB, free: 12.15 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.9211, allocations: 0.556 MB / 1.039 GB, free: 11.59 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.9229, allocations: 0.6672 MB / 1.04 GB, free: 10.93 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001011/0.9239, allocations: 0.9741 MB / 1.041 GB, free: 9.953 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004336/0.9243, allocations: 327 kB / 1.041 GB, free: 9.637 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006052/0.9249, allocations: 410.3 kB / 1.042 GB, free: 9.234 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003508/0.9253, allocations: 330.5 kB / 1.042 GB, free: 8.91 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.157e-05/0.9254, allocations: 28 kB / 1.042 GB, free: 8.883 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.9264, allocations: 0.7331 MB / 1.043 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.9265, allocations: 143.4 kB / 1.043 GB, free: 8.008 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.9268, allocations: 246.6 kB / 1.043 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.9278, allocations: 0.8608 MB / 1.044 GB, free: 6.902 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.9278, allocations: 3.938 kB / 1.044 GB, free: 6.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.363e-06/0.9278, allocations: 0 / 1.044 GB, free: 6.898 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.9279, allocations: 0 / 1.044 GB, free: 6.898 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001223/0.9291, allocations: 0.8797 MB / 1.045 GB, free: 5.969 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.9291, allocations: 8.031 kB / 1.045 GB, free: 5.961 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.9293, allocations: 60.28 kB / 1.045 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.9298, allocations: 445.8 kB / 1.045 GB, free: 5.426 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.9299, allocations: 24.5 kB / 1.045 GB, free: 5.402 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.9299, allocations: 35.92 kB / 1.045 GB, free: 5.367 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.9304, allocations: 286.2 kB / 1.046 GB, free: 5.07 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.9304, allocations: 4 kB / 1.046 GB, free: 5.066 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.9305, allocations: 11.98 kB / 1.046 GB, free: 5.055 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.9305, allocations: 8 kB / 1.046 GB, free: 5.047 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.9309, allocations: 182.1 kB / 1.046 GB, free: 4.867 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.001782/0.9327, allocations: 1.484 MB / 1.047 GB, free: 3.277 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.933, allocations: 158.8 kB / 1.047 GB, free: 3.113 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.9332, allocations: 88.8 kB / 1.047 GB, free: 3.023 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001519/0.9347, allocations: 1.272 MB / 1.049 GB, free: 1.559 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.9347, allocations: 34.5 kB / 1.049 GB, free: 1.516 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.9347, allocations: 4 kB / 1.049 GB, free: 1.512 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006176/0.9354, allocations: 251.5 kB / 1.049 GB, free: 1.262 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.9354, allocations: 51.41 kB / 1.049 GB, free: 1.199 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005956/0.936, allocations: 0.5848 MB / 1.05 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.9361, allocations: 29.7 kB / 1.05 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.9363, allocations: 276 kB / 1.05 GB, free: 300 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.9363, allocations: 51.3 kB / 1.05 GB, free: 248 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.9364, allocations: 69.88 kB / 1.05 GB, free: 172 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.9366, allocations: 358.8 kB / 1.05 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.9368, allocations: 81.94 kB / 1.05 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.9371, allocations: 218.7 kB / 1.051 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.9375, allocations: 231.1 kB / 1.051 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.9375, allocations: 0 / 1.051 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005575/0.938, allocations: 314.1 kB / 1.051 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.9381, allocations: 11.94 kB / 1.051 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.9381, allocations: 4 kB / 1.051 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.9381, allocations: 7.984 kB / 1.051 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.9384, allocations: 59.84 kB / 1.051 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.9384, allocations: 4 kB / 1.051 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.9387, allocations: 52 kB / 1.051 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.357e-05/0.9388, allocations: 19.94 kB / 1.051 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002911/0.939, allocations: 212.6 kB / 1.051 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002727/0.9393, allocations: 217.5 kB / 1.052 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003669/0.9397, allocations: 226.9 kB / 1.052 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.256e-06/0.9397, allocations: 4 kB / 1.052 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005403/0.9403, allocations: 308.7 kB / 1.052 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.9403, allocations: 10.34 kB / 1.052 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.9403, allocations: 3.938 kB / 1.052 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-06/0.9403, allocations: 4 kB / 1.052 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.9405, allocations: 59.91 kB / 1.052 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.9405, allocations: 12.17 kB / 1.052 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.9409, allocations: 39.83 kB / 1.052 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.9409, allocations: 19.98 kB / 1.052 GB, free: 13.55 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.00011/0.941, allocations: 196.1 kB / 1.053 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.151e-05/0.9411, allocations: 51.38 kB / 1.053 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005264/0.9416, allocations: 263.9 kB / 1.053 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.9417, allocations: 3.984 kB / 1.053 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.9417, allocations: 0 / 1.053 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.9417, allocations: 0 / 1.053 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.9426, allocations: 0.7395 MB / 1.054 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.9427, allocations: 0 / 1.054 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.9428, allocations: 35.91 kB / 1.054 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.9428, allocations: 4 kB / 1.054 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.9428, allocations: 0 / 1.054 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.9428, allocations: 4 kB / 1.054 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9428, allocations: 0 / 1.054 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.9433, allocations: 366.1 kB / 1.054 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.9434, allocations: 136.5 kB / 1.054 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.729e-05/0.9435, allocations: 12 kB / 1.054 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.9437, allocations: 15.89 kB / 1.054 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.9438, allocations: 23.91 kB / 1.054 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.9438, allocations: 4 kB / 1.054 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004384/0.9442, allocations: 422.8 kB / 1.055 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9443, allocations: 0 / 1.055 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000686/0.9449, allocations: 239.6 kB / 1.055 GB, free: 10.95 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 (17): * Single equations (assignments): 15 * 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.001135/0.9461, allocations: 497.2 kB / 1.055 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00069/0.9468, allocations: 330.5 kB / 1.056 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.9468, allocations: 0 / 1.056 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.947, allocations: 84.02 kB / 1.056 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.9482, allocations: 258.1 kB / 1.056 GB, free: 9.945 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.9495, allocations: 0.9654 MB / 1.057 GB, free: 8.938 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.9499, allocations: 0.8428 MB / 1.058 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003171/0.9502, allocations: 100.2 kB / 1.058 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.093e-05/0.9503, allocations: 43.42 kB / 1.058 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.9503, allocations: 4 kB / 1.058 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of Templates: time 0.01562/0.9659, allocations: 10.09 MB / 1.068 GB, free: 13.98 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches