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.001982/0.001982, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.523/1.523, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.738/2.738, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.89 kB / 0.8692 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7659/0.7672, allocations: 151.6 MB / 1.017 GB, free: 2.562 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01862/0.7859, allocations: 17.46 MB / 1.034 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007983/0.7939, allocations: 4.921 MB / 1.039 GB, free: 12.1 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00089/0.7949, allocations: 11.94 kB / 1.039 GB, free: 12.09 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009505/0.7959, allocations: 246.4 kB / 1.039 GB, free: 11.84 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.7978, allocations: 0.6102 MB / 1.04 GB, free: 11.23 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.7998, allocations: 0.7276 MB / 1.041 GB, free: 10.51 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001334/0.8012, allocations: 0.9663 MB / 1.042 GB, free: 9.535 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005304/0.8017, allocations: 334.9 kB / 1.042 GB, free: 9.211 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007746/0.8025, allocations: 418.4 kB / 1.042 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004182/0.8029, allocations: 310.6 kB / 1.043 GB, free: 8.496 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.803, allocations: 32 kB / 1.043 GB, free: 8.465 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.8044, allocations: 0.7214 MB / 1.043 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.8046, allocations: 135.5 kB / 1.044 GB, free: 7.609 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002494/0.8048, allocations: 242.6 kB / 1.044 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.8064, allocations: 0.8646 MB / 1.045 GB, free: 6.504 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.8064, allocations: 0 / 1.045 GB, free: 6.504 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.313e-06/0.8064, allocations: 4 kB / 1.045 GB, free: 6.5 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.457e-05/0.8064, allocations: 0 / 1.045 GB, free: 6.5 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.001412/0.8079, allocations: 0.8835 MB / 1.045 GB, free: 5.566 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.8079, allocations: 8.031 kB / 1.045 GB, free: 5.559 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.8081, allocations: 60.28 kB / 1.046 GB, free: 5.5 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.8087, allocations: 437.8 kB / 1.046 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.8088, allocations: 36.44 kB / 1.046 GB, free: 4.996 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.8088, allocations: 31.94 kB / 1.046 GB, free: 4.965 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.8094, allocations: 278.3 kB / 1.046 GB, free: 4.672 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.8094, allocations: 0 / 1.046 GB, free: 4.672 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.8094, allocations: 8 kB / 1.046 GB, free: 4.664 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.8094, allocations: 8 kB / 1.046 GB, free: 4.656 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004161/0.8099, allocations: 198 kB / 1.046 GB, free: 4.461 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.001882/0.8117, allocations: 1.48 MB / 1.048 GB, free: 2.875 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.8121, allocations: 162.8 kB / 1.048 GB, free: 2.707 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.8123, allocations: 84.8 kB / 1.048 GB, free: 2.621 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001705/0.814, allocations: 1.276 MB / 1.049 GB, free: 1.152 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.814, allocations: 38.5 kB / 1.049 GB, free: 1.105 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.684e-06/0.814, allocations: 0 / 1.049 GB, free: 1.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006609/0.8147, allocations: 245.1 kB / 1.05 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.8148, allocations: 59.33 kB / 1.05 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006456/0.8154, allocations: 0.577 MB / 1.05 GB, free: 204 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.8155, allocations: 37.7 kB / 1.05 GB, free: 160 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.8157, allocations: 276 kB / 1.051 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.109e-05/0.8158, allocations: 47.3 kB / 1.051 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.8159, allocations: 73.88 kB / 1.051 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.816, allocations: 358.8 kB / 1.051 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.8162, allocations: 77.94 kB / 1.051 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.8165, allocations: 210.7 kB / 1.051 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.8169, allocations: 238.7 kB / 1.052 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.817, allocations: 0 / 1.052 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006181/0.8176, allocations: 302.2 kB / 1.052 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.8176, allocations: 17.58 kB / 1.052 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.8176, allocations: 7.938 kB / 1.052 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.8177, allocations: 4 kB / 1.052 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.8179, allocations: 67.84 kB / 1.052 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.8179, allocations: 4 kB / 1.052 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.8183, allocations: 43.67 kB / 1.052 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.8183, allocations: 19.98 kB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003132/0.8186, allocations: 212.6 kB / 1.052 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002929/0.8189, allocations: 207.4 kB / 1.052 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003872/0.8193, allocations: 242.9 kB / 1.053 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.799e-06/0.8193, allocations: 4 kB / 1.053 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005782/0.8199, allocations: 306.9 kB / 1.053 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.82, allocations: 8.25 kB / 1.053 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.82, allocations: 7.938 kB / 1.053 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.931e-06/0.82, allocations: 4 kB / 1.053 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.8202, allocations: 63.91 kB / 1.053 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.8202, allocations: 4 kB / 1.053 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.8205, allocations: 35.81 kB / 1.053 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.8206, allocations: 16 kB / 1.053 GB, free: 13.16 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.0001314/0.8207, allocations: 204.8 kB / 1.053 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.716e-05/0.8208, allocations: 51.38 kB / 1.053 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006308/0.8215, allocations: 257.6 kB / 1.054 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.8215, allocations: 3.984 kB / 1.054 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.8215, allocations: 4 kB / 1.054 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.8215, allocations: 0 / 1.054 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.8226, allocations: 0.7316 MB / 1.054 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.8226, allocations: 0 / 1.054 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.8227, allocations: 35.92 kB / 1.054 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.8227, allocations: 4.188 kB / 1.054 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.8228, allocations: 8.109 kB / 1.054 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.8228, allocations: 7.938 kB / 1.054 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.8228, allocations: 0 / 1.054 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005158/0.8233, allocations: 362.1 kB / 1.055 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.8235, allocations: 148.4 kB / 1.055 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.8235, allocations: 4 kB / 1.055 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.8237, allocations: 11.98 kB / 1.055 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.8238, allocations: 19.92 kB / 1.055 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.8238, allocations: 8 kB / 1.055 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004608/0.8243, allocations: 422.8 kB / 1.055 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8243, allocations: 4 kB / 1.055 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000756/0.8251, allocations: 223.7 kB / 1.055 GB, free: 10.56 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.001182/0.8263, allocations: 0.4901 MB / 1.056 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007692/0.827, allocations: 322.1 kB / 1.056 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.827, allocations: 4.25 kB / 1.056 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.8272, allocations: 91.88 kB / 1.056 GB, free: 9.797 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.8285, allocations: 255.5 kB / 1.057 GB, free: 9.551 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.8298, allocations: 0.8123 MB / 1.057 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.8303, allocations: 0.8506 MB / 1.058 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003706/0.8306, allocations: 100.2 kB / 1.058 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.63e-05/0.8307, allocations: 43.44 kB / 1.058 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of SimCode: time 2.274e-06/0.8307, allocations: 0 / 1.058 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of Templates: time 0.01804/0.8488, allocations: 10.19 MB / 1.068 GB, free: 13.64 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