Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008153/0.008153, allocations: 96.73 kB / 15.73 MB, free: 6.051 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.001401/0.001401, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.835/2.835, allocations: 469.8 MB / 0.7425 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 60.09 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3423, allocations: 159.1 MB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.7983/1.141, allocations: 29.87 MB / 1.25 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01243/1.153, allocations: 8.151 MB / 1.258 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/1.155, allocations: 33.25 kB / 1.258 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001278/1.156, allocations: 442.1 kB / 1.258 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005231/1.161, allocations: 1.435 MB / 1.26 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004035/1.165, allocations: 1.141 MB / 1.261 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005291/1.171, allocations: 3.545 MB / 1.264 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002852/1.173, allocations: 1.222 MB / 1.265 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004386/1.178, allocations: 1.695 MB / 1.267 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00465/1.182, allocations: 1.62 MB / 1.269 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001022/1.183, allocations: 133.4 kB / 1.269 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004218/1.188, allocations: 1.012 MB / 1.27 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008053/1.188, allocations: 418.9 kB / 1.27 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001654/1.19, allocations: 0.7502 MB / 1.271 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005484/1.196, allocations: 2.207 MB / 1.273 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/1.196, allocations: 0 / 1.273 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.963e-06/1.196, allocations: 0 / 1.273 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.11e-05/1.196, allocations: 5.219 kB / 1.273 GB, free: 3.785 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004891/1.201, allocations: 1.706 MB / 1.275 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.272e-05/1.201, allocations: 13.12 kB / 1.275 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006309/1.201, allocations: 158.1 kB / 1.275 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00251/1.204, allocations: 0.932 MB / 1.276 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/1.204, allocations: 80.06 kB / 1.276 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002939/1.204, allocations: 116.8 kB / 1.276 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/1.206, allocations: 0.6398 MB / 1.277 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/1.206, allocations: 3.938 kB / 1.277 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.437e-05/1.206, allocations: 23.45 kB / 1.277 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.96e-05/1.206, allocations: 14.47 kB / 1.277 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/1.207, allocations: 468.1 kB / 1.277 GB, free: 2.297 MB / 0.9981 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.00547/1.212, allocations: 2.881 MB / 1.28 GB, free: 0.957 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/1.213, allocations: 300 kB / 1.28 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/1.213, allocations: 141.9 kB / 1.28 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003115/1.214, allocations: 344.7 kB / 1.281 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/1.214, allocations: 39.2 kB / 1.281 GB, free: 500 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/1.214, allocations: 0 / 1.281 GB, free: 500 kB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.001421/1.215, allocations: 0.5257 MB / 1.281 GB, free: 404 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/1.215, allocations: 63.97 kB / 1.281 GB, free: 332 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/1.216, allocations: 0.9084 MB / 1.282 GB, free: 15.95 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001511/1.217, allocations: 54.7 kB / 1.282 GB, free: 15.91 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/1.217, allocations: 492 kB / 1.283 GB, free: 15.54 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000112/1.217, allocations: 122.7 kB / 1.283 GB, free: 15.44 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005234/1.218, allocations: 294.3 kB / 1.283 GB, free: 15.35 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001316/1.218, allocations: 327.2 kB / 1.283 GB, free: 15.04 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/1.218, allocations: 196.9 kB / 1.284 GB, free: 14.96 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/1.22, allocations: 1.148 MB / 1.285 GB, free: 13.87 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009126/1.221, allocations: 463 kB / 1.285 GB, free: 13.64 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/1.221, allocations: 0 / 1.285 GB, free: 13.64 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00153/1.222, allocations: 0.6557 MB / 1.286 GB, free: 13.38 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/1.222, allocations: 5.438 kB / 1.286 GB, free: 13.38 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/1.222, allocations: 2.906 kB / 1.286 GB, free: 13.38 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/1.222, allocations: 9.219 kB / 1.286 GB, free: 13.38 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/1.224, allocations: 234.6 kB / 1.286 GB, free: 13.36 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/1.225, allocations: 2.96 MB / 1.289 GB, free: 10.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003435/1.229, allocations: 0.697 MB / 1.29 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/1.229, allocations: 27.17 kB / 1.29 GB, free: 10.29 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000774/1.23, allocations: 373.4 kB / 1.29 GB, free: 10.1 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001431/1.231, allocations: 1.163 MB / 1.291 GB, free: 8.969 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008222/1.232, allocations: 455.1 kB / 1.291 GB, free: 8.723 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.386e-06/1.232, allocations: 0.8438 kB / 1.291 GB, free: 8.723 MB / 1.014 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001612/1.234, allocations: 0.6662 MB / 1.292 GB, free: 8.461 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/1.234, allocations: 8.031 kB / 1.292 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.234, allocations: 3.719 kB / 1.292 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/1.234, allocations: 5.562 kB / 1.292 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008038/1.234, allocations: 157.5 kB / 1.292 GB, free: 8.449 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/1.234, allocations: 14.86 kB / 1.292 GB, free: 8.441 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005323/1.24, allocations: 0.9613 MB / 1.293 GB, free: 8.348 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/1.24, allocations: 27.39 kB / 1.293 GB, free: 8.344 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004737/1.24, allocations: 241.7 kB / 1.294 GB, free: 8.129 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/1.241, allocations: 104 kB / 1.294 GB, free: 8.07 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/1.242, allocations: 0.5117 MB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/1.242, allocations: 3.938 kB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.242, allocations: 0.5156 kB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/1.242, allocations: 3.109 kB / 1.294 GB, free: 7.859 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/1.245, allocations: 1.256 MB / 1.295 GB, free: 7.199 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/1.245, allocations: 1.156 kB / 1.295 GB, free: 7.199 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005688/1.246, allocations: 120.9 kB / 1.295 GB, free: 7.184 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/1.246, allocations: 2.281 kB / 1.295 GB, free: 7.184 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/1.246, allocations: 11.52 kB / 1.295 GB, free: 7.18 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/1.247, allocations: 2.944 MB / 1.298 GB, free: 4.207 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.247, allocations: 1.469 kB / 1.298 GB, free: 4.207 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/1.248, allocations: 0.57 MB / 1.299 GB, free: 3.875 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004283/1.249, allocations: 218.9 kB / 1.299 GB, free: 3.699 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/1.249, allocations: 7.656 kB / 1.299 GB, free: 3.695 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/1.25, allocations: 31.41 kB / 1.299 GB, free: 3.688 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.478e-05/1.25, allocations: 31.09 kB / 1.299 GB, free: 3.68 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/1.25, allocations: 16.95 kB / 1.299 GB, free: 3.676 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000987/1.251, allocations: 0.6062 MB / 1.3 GB, free: 3.422 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.01e-07/1.251, allocations: 0 / 1.3 GB, free: 3.422 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002054/1.253, allocations: 0.5427 MB / 1.3 GB, free: 3.309 MB / 1.014 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009429/1.254, allocations: 339 kB / 1.301 GB, free: 3.148 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002827/1.257, allocations: 0.8061 MB / 1.301 GB, free: 2.941 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.257, allocations: 0 / 1.301 GB, free: 2.941 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006447/1.257, allocations: 216.7 kB / 1.302 GB, free: 2.891 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/1.259, allocations: 414.6 kB / 1.302 GB, free: 2.754 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/1.262, allocations: 1.554 MB / 1.304 GB, free: 1.926 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006936/1.263, allocations: 1.026 MB / 1.305 GB, free: 1.199 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001269/1.264, allocations: 209.2 kB / 1.305 GB, free: 1.152 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/1.264, allocations: 83.34 kB / 1.305 GB, free: 1.137 MB / 1.014 GB Notification: Performance of SimCode: time 9.12e-07/1.264, allocations: 3.938 kB / 1.305 GB, free: 1.133 MB / 1.014 GB Notification: Performance of Templates: time 0.05241/1.317, allocations: 25.09 MB / 1.329 GB, free: 8.086 MB / 1.029 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches