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.456/1.456, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 186.8 kB / 326.5 MB, free: 2.223 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.871/1.871, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008163/0.0008166, allocations: 93.98 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003363, allocations: 9.688 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2518, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.4565, allocations: 153.7 MB / 1.05 GB, free: 6.016 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.4569, allocations: 91.94 kB / 1.05 GB, free: 5.926 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6091/1.066, allocations: 14.24 MB / 1.064 GB, free: 151.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.444e-06/1.066, allocations: 0 / 1.064 GB, free: 151.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.517e-05/1.066, allocations: 3.812 kB / 1.064 GB, free: 151.9 MB / 0.698 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.0009982/1.067, allocations: 492.9 kB / 1.065 GB, free: 151.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/1.067, allocations: 12.84 kB / 1.065 GB, free: 151.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/1.068, allocations: 81.2 kB / 1.065 GB, free: 151.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/1.069, allocations: 229.4 kB / 1.065 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/1.069, allocations: 10.92 kB / 1.065 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/1.069, allocations: 18.62 kB / 1.065 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007861/1.07, allocations: 318.5 kB / 1.065 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/1.07, allocations: 0.6562 kB / 1.065 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/1.07, allocations: 6.672 kB / 1.065 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.415e-05/1.07, allocations: 23.81 kB / 1.065 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006837/1.07, allocations: 254.2 kB / 1.066 GB, free: 151.1 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/1.073, allocations: 1.639 MB / 1.067 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000995/1.074, allocations: 417.7 kB / 1.068 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001881/1.074, allocations: 95.3 kB / 1.068 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/1.074, allocations: 36.03 kB / 1.068 GB, free: 149.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=13): time 2.425e-06/1.074, allocations: 0 / 1.068 GB, free: 149.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=14): time 0.001036/1.075, allocations: 307.9 kB / 1.068 GB, free: 149.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/1.075, allocations: 83.86 kB / 1.068 GB, free: 149.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/1.075, allocations: 157.6 kB / 1.068 GB, free: 149.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/1.075, allocations: 29.95 kB / 1.068 GB, free: 149.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/1.076, allocations: 150.2 kB / 1.068 GB, free: 149 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/1.076, allocations: 45.98 kB / 1.068 GB, free: 149 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.54e-05/1.076, allocations: 4.688 kB / 1.068 GB, free: 149 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.809e-05/1.076, allocations: 322.3 kB / 1.069 GB, free: 148.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/1.076, allocations: 75.62 kB / 1.069 GB, free: 148.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/1.076, allocations: 155 kB / 1.069 GB, free: 148.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/1.076, allocations: 97.22 kB / 1.069 GB, free: 148.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.076, allocations: 1.031 kB / 1.069 GB, free: 148.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005357/1.077, allocations: 273.6 kB / 1.069 GB, free: 148.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002414/1.077, allocations: 0.9643 MB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/1.077, allocations: 2.812 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/1.077, allocations: 3.938 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/1.078, allocations: 56.8 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/1.078, allocations: 7.688 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/1.078, allocations: 18.31 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/1.078, allocations: 8.312 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/1.078, allocations: 3.625 kB / 1.07 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004069/1.078, allocations: 210.7 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/1.078, allocations: 6.062 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.155e-06/1.078, allocations: 4.312 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/1.079, allocations: 48.72 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/1.079, allocations: 10.84 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/1.079, allocations: 18.81 kB / 1.071 GB, free: 147.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/1.079, allocations: 12.53 kB / 1.071 GB, free: 147.4 MB / 0.698 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 () * Number of clocked 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.0001572/1.079, allocations: 229.6 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/1.079, allocations: 18.62 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/1.079, allocations: 197.3 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/1.079, allocations: 2.5 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-05/1.08, allocations: 0.7812 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/1.08, allocations: 4.594 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/1.081, allocations: 0.9666 MB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/1.081, allocations: 10.86 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/1.081, allocations: 32.23 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/1.081, allocations: 4.156 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/1.081, allocations: 4.734 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/1.081, allocations: 8.156 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/1.081, allocations: 7.953 kB / 1.072 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/1.082, allocations: 0.5839 MB / 1.073 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/1.082, allocations: 118.4 kB / 1.073 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/1.082, allocations: 8.344 kB / 1.073 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/1.082, allocations: 16.41 kB / 1.073 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/1.082, allocations: 25.67 kB / 1.073 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/1.082, allocations: 6.5 kB / 1.073 GB, free: 145.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001434/1.082, allocations: 131.7 kB / 1.073 GB, free: 145.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/1.082, allocations: 4 kB / 1.073 GB, free: 145.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007302/1.083, allocations: 85.53 kB / 1.073 GB, free: 145.8 MB / 0.698 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 () * Number of clocked 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.0002151/1.083, allocations: 122.6 kB / 1.073 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006479/1.084, allocations: 295.4 kB / 1.073 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.084, allocations: 4.844 kB / 1.073 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/1.084, allocations: 81.08 kB / 1.074 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/1.085, allocations: 31.34 kB / 1.074 GB, free: 145.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000943/1.086, allocations: 0.5665 MB / 1.074 GB, free: 145.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/1.086, allocations: 0.7456 MB / 1.075 GB, free: 144.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002689/1.086, allocations: 72.92 kB / 1.075 GB, free: 144.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.09e-05/1.086, allocations: 24 kB / 1.075 GB, free: 144.6 MB / 0.698 GB Notification: Performance of SimCode: time 5.01e-07/1.086, allocations: 0 / 1.075 GB, free: 144.6 MB / 0.698 GB Notification: Performance of Templates: time 0.006095/1.092, allocations: 1.673 MB / 1.077 GB, free: 144.5 MB / 0.698 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