Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_11_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_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005437/0.005437, allocations: 101 kB / 15.73 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 195.2 kB / 16.67 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.644/2.644, allocations: 469.8 MB / 0.7425 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 67.89 kB / 1.065 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8728/0.8742, allocations: 159.1 MB / 1.221 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.00444/0.8787, allocations: 2.624 MB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00248/0.8811, allocations: 1.488 MB / 1.225 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.8813, allocations: 7.938 kB / 1.225 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008282/0.8821, allocations: 227.1 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.8826, allocations: 179.3 kB / 1.225 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004193/0.883, allocations: 155.6 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003188/0.8833, allocations: 231.3 kB / 1.225 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000323/0.8836, allocations: 130.5 kB / 1.226 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.8838, allocations: 103.6 kB / 1.226 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.8841, allocations: 115.5 kB / 1.226 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.12e-05/0.8841, allocations: 16 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003409/0.8844, allocations: 223.6 kB / 1.226 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.8845, allocations: 71.81 kB / 1.226 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.365e-05/0.8846, allocations: 95.53 kB / 1.226 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004102/0.885, allocations: 323.9 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.885, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.783e-06/0.885, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.885, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 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.0008308/0.8859, allocations: 498.6 kB / 1.227 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.8859, allocations: 8.625 kB / 1.227 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005829/0.8865, allocations: 80.7 kB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.8868, allocations: 246.1 kB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.8868, allocations: 12.64 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.8869, allocations: 16.38 kB / 1.227 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005572/0.8874, allocations: 328.3 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.8874, allocations: 0 / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.8875, allocations: 11.94 kB / 1.228 GB, free: 11 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.445e-05/0.8875, allocations: 24.27 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.8879, allocations: 248.6 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.8896, allocations: 1.626 MB / 1.229 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.8902, allocations: 407.1 kB / 1.23 GB, free: 8.508 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.8903, allocations: 85.81 kB / 1.23 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001702/0.8905, allocations: 89.09 kB / 1.23 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.8905, allocations: 38.5 kB / 1.23 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.8905, allocations: 0 / 1.23 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0007043/0.8913, allocations: 304.9 kB / 1.23 GB, free: 7.961 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.8913, allocations: 85.09 kB / 1.23 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.8915, allocations: 167.3 kB / 1.231 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.8915, allocations: 29.7 kB / 1.231 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.8916, allocations: 152.1 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.406e-05/0.8917, allocations: 59.52 kB / 1.231 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.677e-05/0.8918, allocations: 53.88 kB / 1.231 GB, free: 7.383 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8919, allocations: 322.8 kB / 1.231 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.892, allocations: 88.81 kB / 1.231 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.8922, allocations: 157.3 kB / 1.231 GB, free: 6.781 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.8925, allocations: 245.2 kB / 1.232 GB, free: 6.508 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.8925, allocations: 0 / 1.232 GB, free: 6.508 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004274/0.893, allocations: 276.2 kB / 1.232 GB, free: 6.234 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.893, allocations: 8 kB / 1.232 GB, free: 6.227 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.893, allocations: 4 kB / 1.232 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.893, allocations: 7.938 kB / 1.232 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.8933, allocations: 55.89 kB / 1.232 GB, free: 6.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.8933, allocations: 8.141 kB / 1.232 GB, free: 6.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.8934, allocations: 15.98 kB / 1.232 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.8934, allocations: 8 kB / 1.232 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001861/0.8936, allocations: 176.1 kB / 1.232 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001637/0.8938, allocations: 152.4 kB / 1.232 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002678/0.894, allocations: 230.1 kB / 1.232 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.254e-06/0.8941, allocations: 4 kB / 1.232 GB, free: 5.504 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000398/0.8944, allocations: 249.2 kB / 1.233 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.8945, allocations: 8 kB / 1.233 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-06/0.8945, allocations: 0 / 1.233 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.841e-06/0.8945, allocations: 4 kB / 1.233 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.8947, allocations: 60.19 kB / 1.233 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.8947, allocations: 11.94 kB / 1.233 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.8948, allocations: 12.12 kB / 1.233 GB, free: 5.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.8948, allocations: 12 kB / 1.233 GB, free: 5.148 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.8949, allocations: 196.6 kB / 1.233 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.146e-05/0.895, allocations: 11.95 kB / 1.233 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003799/0.8954, allocations: 207.7 kB / 1.233 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.8954, allocations: 4 kB / 1.233 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.8954, allocations: 0 / 1.233 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.8954, allocations: 7.984 kB / 1.233 GB, free: 4.699 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.8966, allocations: 0.9574 MB / 1.234 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.8966, allocations: 4 kB / 1.234 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.8967, allocations: 35.91 kB / 1.234 GB, free: 3.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.8967, allocations: 4.438 kB / 1.234 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.8968, allocations: 16 kB / 1.234 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.8968, allocations: 4 kB / 1.234 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.8968, allocations: 7.875 kB / 1.234 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.8972, allocations: 446.6 kB / 1.235 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.895e-05/0.8973, allocations: 112.9 kB / 1.235 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.8973, allocations: 8 kB / 1.235 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.8975, allocations: 11.98 kB / 1.235 GB, free: 2.922 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.8975, allocations: 23.86 kB / 1.235 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.8976, allocations: 8 kB / 1.235 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001147/0.8977, allocations: 139.7 kB / 1.235 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8977, allocations: 4 kB / 1.235 GB, free: 2.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005338/0.8982, allocations: 72 kB / 1.235 GB, free: 2.68 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001757/0.8984, allocations: 107.2 kB / 1.235 GB, free: 2.566 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005006/0.8989, allocations: 292.7 kB / 1.235 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8989, allocations: 0 / 1.235 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.899, allocations: 83.81 kB / 1.235 GB, free: 2.199 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.8995, allocations: 30.34 kB / 1.236 GB, free: 2.172 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009247/0.9004, allocations: 486.8 kB / 1.236 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.9008, allocations: 0.748 MB / 1.237 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001929/0.901, allocations: 77.5 kB / 1.237 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.901, allocations: 15.44 kB / 1.237 GB, free: 0.7734 MB / 0.9512 GB Notification: Performance of SimCode: time 4.61e-07/0.901, allocations: 4 kB / 1.237 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of Templates: time 0.005192/0.9062, allocations: 1.85 MB / 1.239 GB, free: 14.95 MB / 0.9669 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches