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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.246/2.246, allocations: 390.3 MB / 402.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 221.3 MB / 0.7915 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000839/0.000839, allocations: 99.73 kB / 0.9318 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.708e-05/2.711e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3014, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.515, allocations: 400.2 MB / 1.61 GB, free: 1.957 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004604/1.516, allocations: 91.3 kB / 1.61 GB, free: 1.91 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.771/3.287, allocations: 437.8 MB / 2.037 GB, free: 119.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.973e-06/3.287, allocations: 0 / 2.037 GB, free: 119.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001964/3.287, allocations: 36 kB / 2.037 GB, free: 119 MB / 1.151 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.00359/3.291, allocations: 1.333 MB / 2.039 GB, free: 117.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/3.291, allocations: 12.03 kB / 2.039 GB, free: 117.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007717/3.292, allocations: 146.5 kB / 2.039 GB, free: 117.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/3.294, allocations: 0.8213 MB / 2.039 GB, free: 116.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/3.294, allocations: 85.31 kB / 2.04 GB, free: 116.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003888/3.295, allocations: 120 kB / 2.04 GB, free: 116.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/3.296, allocations: 0.6006 MB / 2.04 GB, free: 115.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/3.296, allocations: 0 / 2.04 GB, free: 115.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/3.296, allocations: 27.95 kB / 2.04 GB, free: 115.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/3.296, allocations: 23.98 kB / 2.04 GB, free: 115.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006714/3.297, allocations: 417 kB / 2.041 GB, free: 115.3 MB / 1.151 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.005415/3.302, allocations: 3.074 MB / 2.044 GB, free: 112.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005236/3.303, allocations: 309.3 kB / 2.044 GB, free: 111.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/3.303, allocations: 125.4 kB / 2.044 GB, free: 111.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003152/3.303, allocations: 352.7 kB / 2.044 GB, free: 111.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/3.303, allocations: 34.84 kB / 2.044 GB, free: 111.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/3.303, allocations: 4 kB / 2.044 GB, free: 111.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001105/3.304, allocations: 402.5 kB / 2.045 GB, free: 110.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/3.304, allocations: 59.41 kB / 2.045 GB, free: 110.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008947/3.305, allocations: 0.7624 MB / 2.046 GB, free: 109.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002104/3.305, allocations: 57.7 kB / 2.046 GB, free: 109.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003744/3.306, allocations: 0.5557 MB / 2.046 GB, free: 109.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.74e-05/3.306, allocations: 114.3 kB / 2.046 GB, free: 109.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/3.306, allocations: 12 kB / 2.046 GB, free: 109.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.011e-05/3.306, allocations: 334 kB / 2.047 GB, free: 108.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/3.306, allocations: 165.4 kB / 2.047 GB, free: 108.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/3.307, allocations: 1.398 MB / 2.048 GB, free: 106.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/3.308, allocations: 297.6 kB / 2.049 GB, free: 106.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/3.308, allocations: 0 / 2.049 GB, free: 106.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001015/3.309, allocations: 0.6033 MB / 2.049 GB, free: 106 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002143/3.309, allocations: 0.8059 MB / 2.05 GB, free: 105.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/3.309, allocations: 12 kB / 2.05 GB, free: 105.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/3.309, allocations: 4 kB / 2.05 GB, free: 105.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/3.31, allocations: 199.8 kB / 2.05 GB, free: 104.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/3.311, allocations: 2.958 MB / 2.053 GB, free: 101.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/3.315, allocations: 0.9094 MB / 2.054 GB, free: 100.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/3.315, allocations: 35.95 kB / 2.054 GB, free: 100.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/3.315, allocations: 5.562 kB / 2.054 GB, free: 100.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007014/3.316, allocations: 469.1 kB / 2.054 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/3.316, allocations: 3.984 kB / 2.054 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/3.316, allocations: 4 kB / 2.054 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/3.316, allocations: 167.7 kB / 2.055 GB, free: 100.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/3.316, allocations: 7.953 kB / 2.055 GB, free: 100.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003263/3.32, allocations: 0.9018 MB / 2.055 GB, free: 99.36 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/3.32, allocations: 27.98 kB / 2.055 GB, free: 99.34 MB / 1.151 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 (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.0002769/3.32, allocations: 165.8 kB / 2.056 GB, free: 99.17 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/3.32, allocations: 94.78 kB / 2.056 GB, free: 99.07 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009853/3.321, allocations: 490.1 kB / 2.056 GB, free: 98.59 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/3.321, allocations: 7.984 kB / 2.056 GB, free: 98.58 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/3.321, allocations: 7.953 kB / 2.056 GB, free: 98.57 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/3.321, allocations: 4 kB / 2.056 GB, free: 98.57 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/3.323, allocations: 1.233 MB / 2.057 GB, free: 97.27 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/3.323, allocations: 3.953 kB / 2.057 GB, free: 97.27 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000507/3.324, allocations: 127.9 kB / 2.058 GB, free: 97.14 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/3.324, allocations: 4 kB / 2.058 GB, free: 97.14 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/3.324, allocations: 8 kB / 2.058 GB, free: 97.13 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009099/3.324, allocations: 2.942 MB / 2.06 GB, free: 94.07 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/3.325, allocations: 384 / 2.06 GB, free: 94.07 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/3.325, allocations: 0.614 MB / 2.061 GB, free: 93.41 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/3.325, allocations: 219.7 kB / 2.061 GB, free: 93.17 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-05/3.326, allocations: 12 kB / 2.061 GB, free: 93.16 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/3.326, allocations: 71.77 kB / 2.061 GB, free: 93.09 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.301e-05/3.326, allocations: 23.97 kB / 2.061 GB, free: 93.07 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/3.326, allocations: 23.94 kB / 2.061 GB, free: 93.04 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006732/3.327, allocations: 0.5858 MB / 2.062 GB, free: 92.45 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/3.327, allocations: 4 kB / 2.062 GB, free: 92.44 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001903/3.329, allocations: 0.6127 MB / 2.062 GB, free: 91.83 MB / 1.151 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 (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.0009347/3.33, allocations: 0.489 MB / 2.063 GB, free: 91.33 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002682/3.333, allocations: 0.778 MB / 2.064 GB, free: 90.55 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/3.333, allocations: 0 / 2.064 GB, free: 90.55 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006462/3.333, allocations: 212.8 kB / 2.064 GB, free: 90.34 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003627/3.337, allocations: 481.8 kB / 2.064 GB, free: 89.88 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/3.34, allocations: 1.066 MB / 2.065 GB, free: 88.77 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000542/3.34, allocations: 1.044 MB / 2.066 GB, free: 87.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003066/3.343, allocations: 274.7 kB / 2.067 GB, free: 87.43 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/3.344, allocations: 67.42 kB / 2.067 GB, free: 87.36 MB / 1.151 GB Notification: Performance of SimCode: time 1.463e-06/3.344, allocations: 0 / 2.067 GB, free: 87.36 MB / 1.151 GB Notification: Performance of Templates: time 0.08047/3.424, allocations: 29.61 MB / 2.096 GB, free: 58.11 MB / 1.151 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