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.271/2.271, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.0009684/0.0009682, allocations: 180.9 kB / 492.3 MB, free: 0.6133 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.591/1.591, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0008444/0.0008444, allocations: 103.3 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.049e-05/3.052e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2717, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8866/1.158, allocations: 171.5 MB / 1.38 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/1.159, allocations: 93.56 kB / 1.38 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03305/1.192, allocations: 15.71 MB / 1.395 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.813e-06/1.192, allocations: 0 / 1.395 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.636e-05/1.192, allocations: 3.969 kB / 1.395 GB, free: 28.88 MB / 0.8386 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.0005204/1.192, allocations: 468 kB / 1.396 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.828e-05/1.192, allocations: 7.781 kB / 1.396 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006782/1.193, allocations: 81.75 kB / 1.396 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/1.193, allocations: 239.7 kB / 1.396 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/1.193, allocations: 11.25 kB / 1.396 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/1.193, allocations: 23.31 kB / 1.396 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/1.194, allocations: 304.6 kB / 1.396 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/1.194, allocations: 11.78 kB / 1.396 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/1.194, allocations: 3.438 kB / 1.396 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.133e-05/1.194, allocations: 19.33 kB / 1.396 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/1.194, allocations: 246 kB / 1.397 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/1.196, allocations: 1.627 MB / 1.398 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/1.196, allocations: 410.8 kB / 1.399 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/1.196, allocations: 83.95 kB / 1.399 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001497/1.196, allocations: 93.09 kB / 1.399 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/1.196, allocations: 30.56 kB / 1.399 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.713e-06/1.196, allocations: 0 / 1.399 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0005102/1.197, allocations: 238.9 kB / 1.399 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/1.197, allocations: 85.27 kB / 1.399 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/1.197, allocations: 153.1 kB / 1.399 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/1.197, allocations: 41.33 kB / 1.399 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/1.197, allocations: 149.7 kB / 1.399 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/1.197, allocations: 50.16 kB / 1.4 GB, free: 25.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/1.197, allocations: 3.812 kB / 1.4 GB, free: 25.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.197, allocations: 322.6 kB / 1.4 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.881e-05/1.198, allocations: 71.78 kB / 1.4 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/1.198, allocations: 157.2 kB / 1.4 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/1.198, allocations: 102.3 kB / 1.4 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/1.198, allocations: 0 / 1.4 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003387/1.198, allocations: 260.1 kB / 1.4 GB, free: 24.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003288/1.199, allocations: 0.9656 MB / 1.401 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/1.199, allocations: 7.984 kB / 1.401 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/1.199, allocations: 4.047 kB / 1.401 GB, free: 23.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/1.199, allocations: 51.89 kB / 1.401 GB, free: 23.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/1.199, allocations: 4 kB / 1.401 GB, free: 23.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/1.199, allocations: 23.7 kB / 1.401 GB, free: 23.49 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/1.199, allocations: 14.92 kB / 1.401 GB, free: 23.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/1.199, allocations: 4 kB / 1.401 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002649/1.199, allocations: 211.9 kB / 1.402 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-06/1.199, allocations: 0 / 1.402 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.839e-06/1.199, allocations: 4 kB / 1.402 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/1.199, allocations: 55.47 kB / 1.402 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/1.199, allocations: 4 kB / 1.402 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/1.2, allocations: 11.36 kB / 1.402 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/1.2, allocations: 8 kB / 1.402 GB, free: 23.24 MB / 0.8386 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 8.488e-05/1.2, allocations: 132.9 kB / 1.402 GB, free: 23.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/1.2, allocations: 15.81 kB / 1.402 GB, free: 23.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003286/1.2, allocations: 206.5 kB / 1.402 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/1.2, allocations: 0 / 1.402 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/1.2, allocations: 4 kB / 1.402 GB, free: 22.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/1.2, allocations: 4 kB / 1.402 GB, free: 22.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/1.201, allocations: 0.9521 MB / 1.403 GB, free: 21.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.201, allocations: 7.953 kB / 1.403 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/1.201, allocations: 39.09 kB / 1.403 GB, free: 21.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/1.201, allocations: 4 kB / 1.403 GB, free: 21.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/1.201, allocations: 8 kB / 1.403 GB, free: 21.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/1.201, allocations: 7.984 kB / 1.403 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.201, allocations: 8.375 kB / 1.403 GB, free: 21.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000395/1.202, allocations: 0.5678 MB / 1.404 GB, free: 21.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.217e-05/1.202, allocations: 115.5 kB / 1.404 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/1.202, allocations: 15.17 kB / 1.404 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/1.202, allocations: 11.98 kB / 1.404 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/1.202, allocations: 19.5 kB / 1.404 GB, free: 21.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/1.202, allocations: 4 kB / 1.404 GB, free: 21.1 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001269/1.202, allocations: 132.3 kB / 1.404 GB, free: 20.98 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/1.202, allocations: 0 / 1.404 GB, free: 20.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000584/1.203, allocations: 89.56 kB / 1.404 GB, free: 20.91 MB / 0.8386 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.0002726/1.203, allocations: 130.6 kB / 1.404 GB, free: 20.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005098/1.204, allocations: 299.9 kB / 1.404 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.204, allocations: 4.375 kB / 1.404 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/1.204, allocations: 86.2 kB / 1.404 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/1.204, allocations: 27.86 kB / 1.405 GB, free: 20.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007486/1.205, allocations: 366.2 kB / 1.405 GB, free: 20.08 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/1.205, allocations: 0.7516 MB / 1.406 GB, free: 19.31 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002179/1.206, allocations: 77.61 kB / 1.406 GB, free: 19.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/1.206, allocations: 22.98 kB / 1.406 GB, free: 19.21 MB / 0.8386 GB Notification: Performance of SimCode: time 9.21e-07/1.206, allocations: 0 / 1.406 GB, free: 19.21 MB / 0.8386 GB Notification: Performance of Templates: time 0.004028/1.21, allocations: 1.8 MB / 1.407 GB, free: 17.44 MB / 0.8386 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