Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.375/1.375, allocations: 249.3 MB / 261.8 MB, free: 5.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009734/0.0009734, allocations: 172.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.2 MB / 0.572 GB, free: 10.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008828/0.000883, allocations: 94.52 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.637e-05/4.639e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1926, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.323/1.516, allocations: 393.3 MB / 1.276 GB, free: 318.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000341/1.516, allocations: 95.72 kB / 1.276 GB, free: 318.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.087/2.603, allocations: 352 MB / 1.62 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 9.22e-07/2.603, allocations: 0 / 1.62 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.533e-05/2.603, allocations: 31.97 kB / 1.62 GB, free: 209.2 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002355/2.606, allocations: 1.156 MB / 1.621 GB, free: 208.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/2.606, allocations: 9.781 kB / 1.621 GB, free: 208.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/2.606, allocations: 120 kB / 1.621 GB, free: 208.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/2.608, allocations: 0.6652 MB / 1.622 GB, free: 208.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.267e-05/2.608, allocations: 62.12 kB / 1.622 GB, free: 208.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/2.608, allocations: 87.77 kB / 1.622 GB, free: 208.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008991/2.609, allocations: 0.5139 MB / 1.622 GB, free: 208.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/2.609, allocations: 2.25 kB / 1.622 GB, free: 208.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/2.609, allocations: 18.59 kB / 1.622 GB, free: 208.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/2.609, allocations: 12.23 kB / 1.622 GB, free: 208.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006963/2.609, allocations: 350.1 kB / 1.623 GB, free: 208.3 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.003845/2.613, allocations: 2.509 MB / 1.625 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/2.614, allocations: 244.8 kB / 1.625 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/2.614, allocations: 123.7 kB / 1.625 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/2.614, allocations: 351.2 kB / 1.626 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/2.614, allocations: 35.59 kB / 1.626 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=29): time 4.398e-06/2.614, allocations: 0 / 1.626 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29): time 0.0008251/2.615, allocations: 328 kB / 1.626 GB, free: 206.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/2.615, allocations: 59.3 kB / 1.626 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008838/2.616, allocations: 0.6507 MB / 1.627 GB, free: 206.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 8.467e-05/2.616, allocations: 48.27 kB / 1.627 GB, free: 206.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/2.617, allocations: 437.3 kB / 1.627 GB, free: 206.3 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.082e-05/2.617, allocations: 98.89 kB / 1.627 GB, free: 206.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/2.617, allocations: 9.531 kB / 1.627 GB, free: 206.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.425e-05/2.617, allocations: 328 kB / 1.628 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/2.617, allocations: 128.6 kB / 1.628 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007273/2.618, allocations: 0.7672 MB / 1.629 GB, free: 205.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/2.618, allocations: 220 kB / 1.629 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/2.618, allocations: 1.062 kB / 1.629 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009012/2.619, allocations: 0.5033 MB / 1.629 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/2.619, allocations: 0.7968 MB / 1.63 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/2.619, allocations: 2.953 kB / 1.63 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/2.619, allocations: 4.938 kB / 1.63 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/2.62, allocations: 176 kB / 1.63 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000917/2.621, allocations: 2.365 MB / 1.632 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/2.623, allocations: 397.1 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.696e-05/2.623, allocations: 25.39 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/2.623, allocations: 3.516 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006957/2.624, allocations: 388.9 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/2.624, allocations: 5.125 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.679e-06/2.624, allocations: 5.984 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/2.625, allocations: 141.3 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/2.625, allocations: 5.234 kB / 1.633 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/2.626, allocations: 384.8 kB / 1.634 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/2.626, allocations: 24.05 kB / 1.634 GB, free: 202 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001981/2.627, allocations: 149.7 kB / 1.634 GB, free: 201.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/2.627, allocations: 78.72 kB / 1.634 GB, free: 201.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009345/2.628, allocations: 439.4 kB / 1.634 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/2.628, allocations: 7.5 kB / 1.634 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/2.628, allocations: 1.125 kB / 1.634 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/2.628, allocations: 10.89 kB / 1.634 GB, free: 201.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/2.629, allocations: 1.083 MB / 1.636 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/2.629, allocations: 5.156 kB / 1.636 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004596/2.63, allocations: 109.4 kB / 1.636 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/2.63, allocations: 8.641 kB / 1.636 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/2.63, allocations: 16.09 kB / 1.636 GB, free: 201.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000776/2.631, allocations: 2.351 MB / 1.638 GB, free: 199.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/2.631, allocations: 1.969 kB / 1.638 GB, free: 199.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007054/2.631, allocations: 0.5331 MB / 1.638 GB, free: 198.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/2.632, allocations: 202.4 kB / 1.639 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.788e-05/2.632, allocations: 6.75 kB / 1.639 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005095/2.632, allocations: 66.45 kB / 1.639 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.215e-05/2.632, allocations: 25.16 kB / 1.639 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/2.632, allocations: 12.12 kB / 1.639 GB, free: 198.7 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000657/2.633, allocations: 0.4947 MB / 1.639 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.41e-07/2.633, allocations: 0 / 1.639 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001911/2.635, allocations: 0.5048 MB / 1.64 GB, free: 198.6 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008641/2.636, allocations: 470.3 kB / 1.64 GB, free: 198.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001784/2.638, allocations: 0.6469 MB / 1.641 GB, free: 198.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/2.638, allocations: 0 / 1.641 GB, free: 198.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/2.638, allocations: 178 kB / 1.641 GB, free: 198.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/2.64, allocations: 429.8 kB / 1.641 GB, free: 198.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/2.642, allocations: 0.897 MB / 1.642 GB, free: 198.2 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/2.642, allocations: 0.9865 MB / 1.643 GB, free: 197.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0009756/2.643, allocations: 210.5 kB / 1.643 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/2.643, allocations: 57.08 kB / 1.644 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of SimCode: time 6.91e-07/2.643, allocations: 2.938 kB / 1.644 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of Templates: time 0.03531/2.679, allocations: 22.03 MB / 1.665 GB, free: 197 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches