Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ThreePhasesUnbalanced.Loads.Examples.Loads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.|senSingleConn.S.1|1.|senSingleConn.S.1|2.|senSingleConn.S.2|1.|senSingleConn.S.2|2.|senSingleConn.S.3|1.|senSingleConn.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.|senSingleConn.S.1|1.|senSingleConn.S.1|2.|senSingleConn.S.2|1.|senSingleConn.S.2|2.|senSingleConn.S.3|1.|senSingleConn.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001863/0.001863, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.332/1.332, allocations: 222.9 MB / 240.6 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.521/2.521, allocations: 469.4 MB / 0.7423 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 68.98 kB / 0.9083 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3425, allocations: 159.1 MB / 1.064 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.6411/0.9837, allocations: 36.92 MB / 1.1 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02478/1.009, allocations: 13.56 MB / 1.113 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004939/1.014, allocations: 98.34 kB / 1.113 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.006638/1.02, allocations: 2.123 MB / 1.115 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00534/1.026, allocations: 1.328 MB / 1.117 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01059/1.036, allocations: 3.27 MB / 1.12 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01104/1.047, allocations: 6.421 MB / 1.126 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02257/1.07, allocations: 11.98 MB / 1.138 GB, free: 220 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006895/1.077, allocations: 2.752 MB / 1.14 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007454/1.084, allocations: 3.377 MB / 1.144 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.003065/1.087, allocations: 0.6192 MB / 1.144 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005733/1.093, allocations: 1.258 MB / 1.145 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.007012/1.1, allocations: 2.474 MB / 1.148 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0103/1.11, allocations: 2.547 MB / 1.15 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01306/1.124, allocations: 7.906 MB / 1.158 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/1.124, allocations: 5.156 kB / 1.158 GB, free: 5.801 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.462e-06/1.124, allocations: 4 kB / 1.158 GB, free: 5.797 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003714/1.124, allocations: 0 / 1.158 GB, free: 5.797 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1156 * Number of variables: 1156 Notification: Performance of Generate backend data structure: time 0.01949/1.143, allocations: 4.302 MB / 1.162 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/1.144, allocations: 9.906 kB / 1.162 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00729/1.151, allocations: 1.033 MB / 1.163 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006977/1.158, allocations: 2.196 MB / 1.165 GB, free: 0.9961 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000418/1.158, allocations: 325 kB / 1.166 GB, free: 0.8477 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002439/1.161, allocations: 427.7 kB / 1.166 GB, free: 0.707 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02133/1.182, allocations: 7.409 MB / 1.173 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001839/1.182, allocations: 15.88 kB / 1.173 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001621/1.184, allocations: 180 kB / 1.174 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/1.184, allocations: 290.9 kB / 1.174 GB, free: 9.871 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/1.198, allocations: 6.026 MB / 1.18 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04438/1.243, allocations: 32.72 MB / 1.212 GB, free: 276 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/1.247, allocations: 2.142 MB / 1.214 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/1.248, allocations: 1.244 MB / 1.215 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002119/1.249, allocations: 110 kB / 1.215 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/1.249, allocations: 47.56 kB / 1.215 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=98): time 3.266e-06/1.249, allocations: 0 / 1.215 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=101): time 0.01063/1.259, allocations: 5.278 MB / 1.22 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.554e-05/1.259, allocations: 145.5 kB / 1.22 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/1.262, allocations: 1.468 MB / 1.222 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002084/1.262, allocations: 41.7 kB / 1.222 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001395/1.264, allocations: 1.871 MB / 1.224 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005285/1.264, allocations: 378.8 kB / 1.224 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009575/1.265, allocations: 459.1 kB / 1.225 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.265, allocations: 301.1 kB / 1.225 GB, free: 2.602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/1.267, allocations: 1.153 MB / 1.226 GB, free: 1.438 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/1.27, allocations: 2.209 MB / 1.228 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004748/1.275, allocations: 3.438 MB / 1.232 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.778e-05/1.275, allocations: 8 kB / 1.232 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006184/1.281, allocations: 3.37 MB / 1.235 GB, free: 7.41 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/1.281, allocations: 18.03 kB / 1.235 GB, free: 7.395 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.923e-05/1.281, allocations: 36 kB / 1.235 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-05/1.281, allocations: 48.81 kB / 1.235 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/1.284, allocations: 0.6355 MB / 1.236 GB, free: 6.676 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.533e-05/1.284, allocations: 67.72 kB / 1.236 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/1.287, allocations: 334.7 kB / 1.236 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/1.287, allocations: 116 kB / 1.236 GB, free: 6.168 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004617/1.291, allocations: 2.434 MB / 1.238 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002604/1.294, allocations: 2.039 MB / 1.24 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003846/1.298, allocations: 3.068 MB / 1.243 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-05/1.298, allocations: 11.94 kB / 1.243 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.005271/1.303, allocations: 2.98 MB / 1.246 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/1.303, allocations: 20 kB / 1.246 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-05/1.303, allocations: 32 kB / 1.246 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.081e-05/1.303, allocations: 48 kB / 1.246 GB, free: 10.49 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/1.305, allocations: 0.57 MB / 1.247 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.217e-05/1.306, allocations: 75.66 kB / 1.247 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002364/1.308, allocations: 259 kB / 1.247 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/1.308, allocations: 120 kB / 1.247 GB, free: 9.477 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (264): * Single equations (assignments): 264 * 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.0006505/1.309, allocations: 327.3 kB / 1.248 GB, free: 9.148 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/1.309, allocations: 158.1 kB / 1.248 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003716/1.313, allocations: 2.25 MB / 1.25 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/1.313, allocations: 15.94 kB / 1.25 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/1.313, allocations: 0 / 1.25 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/1.313, allocations: 4.125 kB / 1.25 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/1.331, allocations: 11 MB / 1.261 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.451e-05/1.331, allocations: 16 kB / 1.261 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/1.333, allocations: 387.3 kB / 1.261 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.127e-05/1.333, allocations: 16 kB / 1.261 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/1.333, allocations: 31.98 kB / 1.261 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.45e-05/1.333, allocations: 19.94 kB / 1.261 GB, free: 11 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/1.333, allocations: 16.31 kB / 1.261 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003629/1.337, allocations: 2.763 MB / 1.264 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.338, allocations: 450.9 kB / 1.264 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004897/1.339, allocations: 47.77 kB / 1.264 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/1.34, allocations: 175.7 kB / 1.265 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/1.34, allocations: 100.2 kB / 1.265 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/1.34, allocations: 36 kB / 1.265 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002537/1.343, allocations: 1.013 MB / 1.266 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/1.343, allocations: 0 / 1.266 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.006114/1.349, allocations: 1.133 MB / 1.267 GB, free: 5.094 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (104): * Single equations (assignments): 104 * 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.0003462/1.35, allocations: 146.9 kB / 1.267 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007114/1.357, allocations: 4.29 MB / 1.271 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.474e-05/1.357, allocations: 7.875 kB / 1.271 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001517/1.358, allocations: 1.055 MB / 1.272 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/1.361, allocations: 447.5 kB / 1.273 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/1.378, allocations: 9.439 MB / 1.282 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004639/1.383, allocations: 2.942 MB / 1.285 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008931/1.384, allocations: 143.4 kB / 1.285 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of SimCode: time 1.152e-06/1.384, allocations: 4 kB / 1.285 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of Templates: time 0.06456/1.449, allocations: 41.14 MB / 1.325 GB, free: 9.426 MB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches