Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001514/0.001514, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001787/0.001787, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.0003796, allocations: 12 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7897/0.7901, allocations: 153.6 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02578/0.816, allocations: 25.04 MB / 1.045 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0101/0.8261, allocations: 7.044 MB / 1.052 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001427/0.8276, allocations: 23.81 kB / 1.052 GB, free: 0.9492 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001607/0.8292, allocations: 374 kB / 1.053 GB, free: 0.582 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005372/0.8346, allocations: 1.454 MB / 1.054 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003359/0.838, allocations: 1.187 MB / 1.055 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00371/0.8417, allocations: 2.112 MB / 1.057 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.8433, allocations: 1.09 MB / 1.058 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.8457, allocations: 1.286 MB / 1.059 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.8479, allocations: 1.301 MB / 1.061 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002728/0.8481, allocations: 67.94 kB / 1.061 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002535/0.8507, allocations: 0.9049 MB / 1.062 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004717/0.8512, allocations: 330.9 kB / 1.062 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.8516, allocations: 245.1 kB / 1.062 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.8535, allocations: 1.545 MB / 1.064 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.8535, allocations: 0 / 1.064 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.384e-06/0.8535, allocations: 0 / 1.064 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.681e-05/0.8535, allocations: 0 / 1.064 GB, free: 5.051 MB / 0.8106 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.002533/0.856, allocations: 1.346 MB / 1.065 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.8561, allocations: 11.98 kB / 1.065 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003151/0.8564, allocations: 150.4 kB / 1.065 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.8583, allocations: 0.8527 MB / 1.066 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.876e-05/0.8584, allocations: 81.31 kB / 1.066 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.8586, allocations: 120 kB / 1.066 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.8597, allocations: 0.6434 MB / 1.067 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.8597, allocations: 0 / 1.067 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.189e-05/0.8598, allocations: 23.94 kB / 1.067 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.8598, allocations: 20 kB / 1.067 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008594/0.8607, allocations: 472.9 kB / 1.067 GB, free: 1.211 MB / 0.8106 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.004517/0.8652, allocations: 2.879 MB / 1.07 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.8658, allocations: 308.4 kB / 1.07 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003877/0.8662, allocations: 352.7 kB / 1.071 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.8663, allocations: 34.83 kB / 1.071 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.294e-06/0.8663, allocations: 0 / 1.071 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.001221/0.8675, allocations: 0.5488 MB / 1.071 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.8676, allocations: 59.39 kB / 1.071 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.8687, allocations: 0.8919 MB / 1.072 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.8688, allocations: 57.7 kB / 1.072 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004945/0.8693, allocations: 0.5264 MB / 1.073 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.8694, allocations: 122.4 kB / 1.073 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.8695, allocations: 12 kB / 1.073 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.8696, allocations: 330 kB / 1.073 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.87, allocations: 173.2 kB / 1.073 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.8716, allocations: 1.135 MB / 1.075 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/0.8722, allocations: 318.7 kB / 1.075 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.8723, allocations: 0 / 1.075 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001242/0.8735, allocations: 0.6423 MB / 1.076 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003408/0.8739, allocations: 0.802 MB / 1.076 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.8739, allocations: 8 kB / 1.076 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.8739, allocations: 4 kB / 1.076 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.8753, allocations: 243.5 kB / 1.077 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.8769, allocations: 2.95 MB / 1.079 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/0.88, allocations: 0.7495 MB / 1.08 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-05/0.8801, allocations: 27.98 kB / 1.08 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.8801, allocations: 11.95 kB / 1.08 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009302/0.881, allocations: 0.4934 MB / 1.081 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.881, allocations: 8.031 kB / 1.081 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.283e-06/0.881, allocations: 4 kB / 1.081 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.8817, allocations: 159.8 kB / 1.081 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.8817, allocations: 4 kB / 1.081 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.8846, allocations: 0.7339 MB / 1.082 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.8847, allocations: 35.92 kB / 1.082 GB, free: 1.785 MB / 0.8262 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005778/0.8853, allocations: 329.9 kB / 1.082 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.8855, allocations: 102.7 kB / 1.082 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.8865, allocations: 0.5127 MB / 1.083 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.8865, allocations: 4 kB / 1.083 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.8866, allocations: 3.984 kB / 1.083 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.8866, allocations: 0 / 1.083 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.8888, allocations: 1.268 MB / 1.084 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.8889, allocations: 7.938 kB / 1.084 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005068/0.8894, allocations: 107.9 kB / 1.084 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/0.8894, allocations: 12.11 kB / 1.084 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.8894, allocations: 12 kB / 1.084 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.8908, allocations: 2.946 MB / 1.087 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8908, allocations: 0 / 1.087 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008622/0.8917, allocations: 0.6341 MB / 1.087 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.892, allocations: 223.8 kB / 1.088 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.8921, allocations: 16 kB / 1.088 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004992/0.8926, allocations: 63.86 kB / 1.088 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.539e-05/0.8927, allocations: 35.91 kB / 1.088 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.8927, allocations: 12 kB / 1.088 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007167/0.8935, allocations: 0.6006 MB / 1.088 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.72e-07/0.8935, allocations: 0 / 1.088 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001564/0.895, allocations: 0.5345 MB / 1.089 GB, free: 10.1 MB / 0.8419 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000726/0.8958, allocations: 322.1 kB / 1.089 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002453/0.8982, allocations: 0.8393 MB / 1.09 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.8983, allocations: 4.375 kB / 1.09 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005661/0.8988, allocations: 235.7 kB / 1.09 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.9011, allocations: 472.7 kB / 1.091 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.9036, allocations: 1.81 MB / 1.092 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.9042, allocations: 1.046 MB / 1.093 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001028/0.9052, allocations: 207 kB / 1.094 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.9054, allocations: 83.41 kB / 1.094 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of SimCode: time 2.044e-06/0.9054, allocations: 0 / 1.094 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of Templates: time 0.04113/0.9465, allocations: 23.57 MB / 1.117 GB, free: 13.9 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches