Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.413/1.413, allocations: 249.5 MB / 257 MB, free: 6.871 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.001054/0.001054, allocations: 180 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0009824/0.0009824, allocations: 82.48 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.077e-05/2.08e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2392, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7939/1.033, allocations: 153.9 MB / 1.035 GB, free: 1.504 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/1.034, allocations: 103.3 kB / 1.036 GB, free: 1.445 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03223/1.066, allocations: 14.1 MB / 1.049 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.242e-06/1.066, allocations: 0 / 1.049 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.525e-05/1.066, allocations: 15.94 kB / 1.049 GB, free: 5.742 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005743/1.066, allocations: 467.6 kB / 1.05 GB, free: 5.25 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/1.066, allocations: 8.031 kB / 1.05 GB, free: 5.242 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006107/1.067, allocations: 79.53 kB / 1.05 GB, free: 5.168 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/1.067, allocations: 239.8 kB / 1.05 GB, free: 4.906 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/1.067, allocations: 4 kB / 1.05 GB, free: 4.902 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/1.067, allocations: 8 kB / 1.05 GB, free: 4.895 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002929/1.068, allocations: 182.4 kB / 1.05 GB, free: 4.773 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/1.068, allocations: 295.1 kB / 1.051 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/1.068, allocations: 0 / 1.051 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/1.068, allocations: 0 / 1.051 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.641e-05/1.068, allocations: 23.98 kB / 1.051 GB, free: 4.492 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/1.07, allocations: 1.572 MB / 1.052 GB, free: 2.902 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/1.07, allocations: 419.5 kB / 1.053 GB, free: 2.484 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/1.07, allocations: 81.55 kB / 1.053 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/1.071, allocations: 89.08 kB / 1.053 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/1.071, allocations: 49.33 kB / 1.053 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/1.071, allocations: 0 / 1.053 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14): time 0.0005979/1.071, allocations: 246 kB / 1.053 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/1.071, allocations: 84.61 kB / 1.053 GB, free: 1.945 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/1.071, allocations: 144.7 kB / 1.053 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/1.071, allocations: 25.7 kB / 1.053 GB, free: 1.785 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.865e-05/1.072, allocations: 148.6 kB / 1.053 GB, free: 1.641 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 3.809e-05/1.072, allocations: 50.28 kB / 1.053 GB, free: 1.598 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-06/1.072, allocations: 0 / 1.053 GB, free: 1.598 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.072, allocations: 325.7 kB / 1.054 GB, free: 1.277 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.241e-05/1.072, allocations: 66.55 kB / 1.054 GB, free: 1.234 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/1.072, allocations: 139.6 kB / 1.054 GB, free: 1.094 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/1.072, allocations: 118.4 kB / 1.054 GB, free: 1.008 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/1.072, allocations: 4 kB / 1.054 GB, free: 1.004 MB / 0.6667 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004235/1.073, allocations: 262.3 kB / 1.054 GB, free: 0.7891 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004534/1.073, allocations: 0.9624 MB / 1.055 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.073, allocations: 8 kB / 1.055 GB, free: 15.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/1.073, allocations: 7.953 kB / 1.055 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/1.073, allocations: 58.89 kB / 1.055 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/1.073, allocations: 4 kB / 1.055 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/1.074, allocations: 19.92 kB / 1.055 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/1.074, allocations: 8 kB / 1.055 GB, free: 15.67 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/1.074, allocations: 4 kB / 1.055 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003464/1.074, allocations: 195.9 kB / 1.056 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/1.074, allocations: 3.938 kB / 1.056 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-06/1.074, allocations: 4.312 kB / 1.056 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/1.074, allocations: 51.97 kB / 1.056 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/1.074, allocations: 11.88 kB / 1.056 GB, free: 15.45 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.686e-05/1.074, allocations: 11.89 kB / 1.056 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/1.074, allocations: 11.94 kB / 1.056 GB, free: 15.43 MB / 0.6823 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001047/1.074, allocations: 112.9 kB / 1.056 GB, free: 15.31 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/1.074, allocations: 7.906 kB / 1.056 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/1.075, allocations: 201.2 kB / 1.056 GB, free: 15.13 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/1.075, allocations: 4 kB / 1.056 GB, free: 15.13 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.075, allocations: 0 / 1.056 GB, free: 15.13 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/1.075, allocations: 3.984 kB / 1.056 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/1.076, allocations: 0.9114 MB / 1.057 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/1.076, allocations: 4 kB / 1.057 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/1.076, allocations: 28.61 kB / 1.057 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/1.076, allocations: 8 kB / 1.057 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/1.076, allocations: 11.89 kB / 1.057 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/1.076, allocations: 11.92 kB / 1.057 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.076, allocations: 4 kB / 1.057 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/1.077, allocations: 0.5846 MB / 1.057 GB, free: 13.49 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.175e-05/1.077, allocations: 116.1 kB / 1.058 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/1.077, allocations: 8 kB / 1.058 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/1.077, allocations: 11.97 kB / 1.058 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/1.077, allocations: 15.94 kB / 1.058 GB, free: 13.33 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/1.077, allocations: 15.33 kB / 1.058 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.69e-05/1.077, allocations: 125.9 kB / 1.058 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/1.077, allocations: 0 / 1.058 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004786/1.078, allocations: 72 kB / 1.058 GB, free: 13.14 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001669/1.078, allocations: 122.7 kB / 1.058 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003896/1.078, allocations: 275 kB / 1.058 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.078, allocations: 0 / 1.058 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/1.078, allocations: 78.58 kB / 1.058 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/1.079, allocations: 23.3 kB / 1.058 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006055/1.079, allocations: 354.4 kB / 1.059 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/1.08, allocations: 0.7521 MB / 1.059 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002122/1.08, allocations: 81.81 kB / 1.059 GB, free: 11.51 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.01e-05/1.08, allocations: 18.31 kB / 1.059 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/1.08, allocations: 0 / 1.059 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of Templates: time 0.004034/1.084, allocations: 1.717 MB / 1.061 GB, free: 9.824 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches