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.008554/0.008554, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001754/0.001754, allocations: 190 kB / 16.67 MB, free: 5.48 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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 MB / 0.7105 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 68.25 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086/1.088, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02238/1.11, allocations: 17.47 MB / 1.184 GB, free: 2.344 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.007938/1.118, allocations: 4.913 MB / 1.188 GB, free: 13.41 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009199/1.119, allocations: 15.88 kB / 1.188 GB, free: 13.39 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/1.12, allocations: 258.3 kB / 1.189 GB, free: 13.14 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002232/1.123, allocations: 0.6414 MB / 1.189 GB, free: 12.49 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002563/1.125, allocations: 0.7339 MB / 1.19 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00194/1.127, allocations: 0.9663 MB / 1.191 GB, free: 10.8 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007721/1.128, allocations: 333 kB / 1.191 GB, free: 10.46 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/1.129, allocations: 422.3 kB / 1.192 GB, free: 10.05 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007027/1.13, allocations: 314.6 kB / 1.192 GB, free: 9.738 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001132/1.13, allocations: 28 kB / 1.192 GB, free: 9.711 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/1.132, allocations: 0.7331 MB / 1.193 GB, free: 8.977 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0002031/1.132, allocations: 127.6 kB / 1.193 GB, free: 8.852 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0003598/1.132, allocations: 246.6 kB / 1.193 GB, free: 8.609 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002084/1.134, allocations: 0.884 MB / 1.194 GB, free: 7.727 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/1.134, allocations: 4 kB / 1.194 GB, free: 7.723 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.094e-06/1.134, allocations: 0 / 1.194 GB, free: 7.723 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.279e-05/1.134, allocations: 0 / 1.194 GB, free: 7.723 MB / 0.92 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.0018/1.136, allocations: 0.8982 MB / 1.195 GB, free: 6.773 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/1.136, allocations: 8.922 kB / 1.195 GB, free: 6.766 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/1.136, allocations: 64.56 kB / 1.195 GB, free: 6.703 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009256/1.137, allocations: 474 kB / 1.195 GB, free: 6.203 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/1.137, allocations: 24.5 kB / 1.195 GB, free: 6.18 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/1.137, allocations: 28 kB / 1.195 GB, free: 6.152 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005692/1.138, allocations: 294.2 kB / 1.196 GB, free: 5.848 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/1.138, allocations: 0 / 1.196 GB, free: 5.848 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/1.138, allocations: 8 kB / 1.196 GB, free: 5.84 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/1.138, allocations: 8 kB / 1.196 GB, free: 5.832 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/1.139, allocations: 194.1 kB / 1.196 GB, free: 5.641 MB / 0.92 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.002128/1.141, allocations: 1.469 MB / 1.197 GB, free: 4.066 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/1.141, allocations: 158.8 kB / 1.198 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/1.141, allocations: 88.81 kB / 1.198 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001712/1.143, allocations: 1.276 MB / 1.199 GB, free: 2.344 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.143, allocations: 46.42 kB / 1.199 GB, free: 2.289 MB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/1.143, allocations: 0 / 1.199 GB, free: 2.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0007407/1.144, allocations: 253.1 kB / 1.199 GB, free: 2.035 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/1.144, allocations: 51.41 kB / 1.199 GB, free: 1.973 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007814/1.145, allocations: 0.5848 MB / 1.2 GB, free: 1.379 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/1.145, allocations: 37.7 kB / 1.2 GB, free: 1.336 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/1.145, allocations: 268.5 kB / 1.2 GB, free: 1.066 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.499e-05/1.145, allocations: 55.53 kB / 1.2 GB, free: 1.012 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/1.145, allocations: 73.92 kB / 1.2 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001813/1.145, allocations: 354.8 kB / 1.201 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/1.146, allocations: 81.92 kB / 1.201 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/1.146, allocations: 215.2 kB / 1.201 GB, free: 244 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004671/1.146, allocations: 243 kB / 1.201 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.146, allocations: 0 / 1.201 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006658/1.147, allocations: 313 kB / 1.201 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/1.147, allocations: 11.94 kB / 1.201 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/1.147, allocations: 4.25 kB / 1.201 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/1.147, allocations: 4 kB / 1.201 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/1.147, allocations: 63.91 kB / 1.201 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/1.147, allocations: 4 kB / 1.201 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/1.148, allocations: 43.75 kB / 1.201 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/1.148, allocations: 16 kB / 1.201 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003402/1.148, allocations: 214.8 kB / 1.202 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000309/1.149, allocations: 213.5 kB / 1.202 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004047/1.149, allocations: 231.5 kB / 1.202 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.505e-06/1.149, allocations: 0 / 1.202 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000653/1.15, allocations: 306.9 kB / 1.202 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.15, allocations: 8 kB / 1.202 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/1.15, allocations: 16.17 kB / 1.202 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/1.15, allocations: 4 kB / 1.202 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/1.15, allocations: 63.91 kB / 1.202 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/1.15, allocations: 4 kB / 1.202 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/1.15, allocations: 39.8 kB / 1.203 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/1.15, allocations: 11.94 kB / 1.203 GB, free: 14.34 MB / 0.9356 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.0001753/1.151, allocations: 200.1 kB / 1.203 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/1.151, allocations: 55.61 kB / 1.203 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005896/1.151, allocations: 257.7 kB / 1.203 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/1.151, allocations: 4 kB / 1.203 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.151, allocations: 0 / 1.203 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.151, allocations: 0 / 1.203 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/1.152, allocations: 0.7317 MB / 1.204 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/1.153, allocations: 4 kB / 1.204 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/1.153, allocations: 36.09 kB / 1.204 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.153, allocations: 0 / 1.204 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/1.153, allocations: 16.12 kB / 1.204 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/1.153, allocations: 0 / 1.204 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.153, allocations: 4.125 kB / 1.204 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005116/1.153, allocations: 362.6 kB / 1.204 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/1.153, allocations: 152.7 kB / 1.204 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.129e-05/1.154, allocations: 0 / 1.204 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/1.154, allocations: 15.98 kB / 1.204 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.802e-05/1.154, allocations: 15.92 kB / 1.204 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/1.154, allocations: 11.98 kB / 1.204 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004971/1.154, allocations: 414.8 kB / 1.205 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.154, allocations: 0 / 1.205 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0008301/1.155, allocations: 231.6 kB / 1.205 GB, free: 11.73 MB / 0.9356 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.001275/1.156, allocations: 0.4998 MB / 1.205 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007555/1.157, allocations: 319.5 kB / 1.206 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.157, allocations: 1 kB / 1.206 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002178/1.157, allocations: 88.14 kB / 1.206 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/1.159, allocations: 248.4 kB / 1.206 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/1.16, allocations: 0.8162 MB / 1.207 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/1.161, allocations: 0.8389 MB / 1.208 GB, free: 9 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0003598/1.161, allocations: 104.6 kB / 1.208 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.024e-05/1.161, allocations: 43.38 kB / 1.208 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of SimCode: time 6.81e-07/1.161, allocations: 4 kB / 1.208 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of Templates: time 0.01996/1.181, allocations: 10.25 MB / 1.218 GB, free: 14.74 MB / 0.9512 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