Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001328/0.001328, allocations: 175 kB / 498.1 MB, free: 5.777 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.0009086/0.0009088, allocations: 102.6 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003985, allocations: 12.56 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3271, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1973/0.5245, allocations: 171.5 MB / 1.39 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.5248, allocations: 95.94 kB / 1.39 GB, free: 6.438 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04054/0.5654, allocations: 15.8 MB / 1.406 GB, free: 6.457 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.244e-06/0.5654, allocations: 0 / 1.406 GB, free: 6.457 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.96e-05/0.5655, allocations: 4 kB / 1.406 GB, free: 6.453 MB / 0.9011 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.0008786/0.5663, allocations: 482.9 kB / 1.406 GB, free: 5.93 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.5664, allocations: 11.97 kB / 1.406 GB, free: 5.918 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007058/0.5671, allocations: 79.67 kB / 1.406 GB, free: 5.84 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.5675, allocations: 242.3 kB / 1.407 GB, free: 5.566 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.5676, allocations: 8.328 kB / 1.407 GB, free: 5.559 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.354e-05/0.5676, allocations: 19.94 kB / 1.407 GB, free: 5.539 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.5682, allocations: 316.7 kB / 1.407 GB, free: 5.195 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.5682, allocations: 0 / 1.407 GB, free: 5.195 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.5683, allocations: 8 kB / 1.407 GB, free: 5.188 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.293e-05/0.5683, allocations: 19.98 kB / 1.407 GB, free: 5.168 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004103/0.5687, allocations: 255.7 kB / 1.407 GB, free: 4.918 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.5705, allocations: 1.629 MB / 1.409 GB, free: 3.141 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.5711, allocations: 419.1 kB / 1.409 GB, free: 2.676 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001897/0.5713, allocations: 85.31 kB / 1.409 GB, free: 2.574 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.5714, allocations: 42.5 kB / 1.409 GB, free: 2.523 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=13): time 1.853e-06/0.5714, allocations: 0 / 1.409 GB, free: 2.523 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14): time 0.0006666/0.5721, allocations: 300.5 kB / 1.41 GB, free: 2.223 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.5721, allocations: 81.11 kB / 1.41 GB, free: 2.125 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.5723, allocations: 162.1 kB / 1.41 GB, free: 1.957 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.5723, allocations: 25.7 kB / 1.41 GB, free: 1.926 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.5724, allocations: 143.9 kB / 1.41 GB, free: 1.781 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 4.655e-05/0.5725, allocations: 55.28 kB / 1.41 GB, free: 1.727 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.5725, allocations: 4 kB / 1.41 GB, free: 1.723 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.5726, allocations: 327 kB / 1.41 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.5728, allocations: 75.95 kB / 1.411 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.5729, allocations: 149.3 kB / 1.411 GB, free: 1.141 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.5731, allocations: 107.9 kB / 1.411 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5731, allocations: 0 / 1.411 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004064/0.5735, allocations: 277.2 kB / 1.411 GB, free: 0.7578 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005433/0.5741, allocations: 0.9562 MB / 1.412 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5741, allocations: 3.984 kB / 1.412 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.5741, allocations: 4 kB / 1.412 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.5744, allocations: 55.91 kB / 1.412 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5744, allocations: 4 kB / 1.412 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.5746, allocations: 19.97 kB / 1.412 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.5746, allocations: 12 kB / 1.412 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.5746, allocations: 4 kB / 1.412 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003265/0.575, allocations: 207.7 kB / 1.412 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-06/0.575, allocations: 0 / 1.412 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.861e-06/0.575, allocations: 4 kB / 1.412 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.5752, allocations: 55.91 kB / 1.412 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.5752, allocations: 8.312 kB / 1.412 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.5753, allocations: 19.83 kB / 1.412 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.5754, allocations: 8.188 kB / 1.412 GB, free: 15.33 MB / 0.9167 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.0001755/0.5755, allocations: 229 kB / 1.413 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.5756, allocations: 15.84 kB / 1.413 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003798/0.576, allocations: 207.6 kB / 1.413 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.576, allocations: 8 kB / 1.413 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.576, allocations: 0 / 1.413 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.576, allocations: 0 / 1.413 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.5773, allocations: 0.969 MB / 1.414 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5774, allocations: 4 kB / 1.414 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.5775, allocations: 35.91 kB / 1.414 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.5775, allocations: 4.438 kB / 1.414 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.5776, allocations: 12 kB / 1.414 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.5776, allocations: 4 kB / 1.414 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.269e-05/0.5776, allocations: 7.938 kB / 1.414 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.5781, allocations: 0.5695 MB / 1.414 GB, free: 13 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.5782, allocations: 116.9 kB / 1.414 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.5782, allocations: 4 kB / 1.414 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.5784, allocations: 15.98 kB / 1.415 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.5785, allocations: 19.88 kB / 1.415 GB, free: 12.83 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.5785, allocations: 12 kB / 1.415 GB, free: 12.82 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001305/0.5786, allocations: 140.2 kB / 1.415 GB, free: 12.68 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5787, allocations: 0 / 1.415 GB, free: 12.68 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005641/0.5792, allocations: 83.94 kB / 1.415 GB, free: 12.6 MB / 0.9167 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.0001903/0.5794, allocations: 123.7 kB / 1.415 GB, free: 12.47 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004688/0.5799, allocations: 307.5 kB / 1.415 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5799, allocations: 3.938 kB / 1.415 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.58, allocations: 85.33 kB / 1.415 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.5804, allocations: 25.86 kB / 1.415 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008234/0.5812, allocations: 0.5691 MB / 1.416 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.5815, allocations: 0.7558 MB / 1.417 GB, free: 10.65 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000219/0.5818, allocations: 81.5 kB / 1.417 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.5818, allocations: 15.44 kB / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of SimCode: time 2.5e-07/0.5818, allocations: 0 / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of Templates: time 0.004442/0.5863, allocations: 1.668 MB / 1.418 GB, free: 8.906 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches