Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 109.8 kB / 15.99 MB, free: 6.348 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.001336/0.001336, allocations: 191.3 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.413/1.413, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 482.4 MB / 0.755 GB, free: 7.18 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 64.28 kB / 0.924 GB, free: 320 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8449/0.8469, allocations: 162.2 MB / 1.082 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02669/0.8736, allocations: 20.27 MB / 1.102 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01518/0.8888, allocations: 7.611 MB / 1.11 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002986/0.8919, allocations: 51.91 kB / 1.11 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004305/0.8963, allocations: 1.267 MB / 1.111 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.8999, allocations: 0.9224 MB / 1.112 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006127/0.9061, allocations: 1.85 MB / 1.114 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006706/0.9128, allocations: 4.35 MB / 1.118 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01332/0.9262, allocations: 7.328 MB / 1.125 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004643/0.9309, allocations: 1.862 MB / 1.127 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004712/0.9356, allocations: 2.309 MB / 1.129 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001479/0.9371, allocations: 428 kB / 1.13 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002745/0.9399, allocations: 0.9447 MB / 1.13 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003005/0.9429, allocations: 1.662 MB / 1.132 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00493/0.9479, allocations: 1.719 MB / 1.134 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007846/0.9557, allocations: 5.318 MB / 1.139 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.9558, allocations: 1.375 kB / 1.139 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.188e-06/0.9558, allocations: 0 / 1.139 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001908/0.956, allocations: 3.938 kB / 1.139 GB, free: 15.78 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: 776 * Number of variables: 776 Notification: Performance of Generate backend data structure: time 0.009448/0.9655, allocations: 3.041 MB / 1.142 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.9655, allocations: 13.66 kB / 1.142 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004288/0.9698, allocations: 0.7444 MB / 1.143 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.9735, allocations: 1.544 MB / 1.144 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.9738, allocations: 220.7 kB / 1.144 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008967/0.9747, allocations: 281.4 kB / 1.145 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.9873, allocations: 5.078 MB / 1.15 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.9875, allocations: 11.28 kB / 1.15 GB, free: 9.02 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006691/0.9881, allocations: 128.9 kB / 1.15 GB, free: 8.922 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003005/0.9884, allocations: 209.8 kB / 1.15 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009598/0.998, allocations: 4.225 MB / 1.154 GB, free: 5.297 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/1.032, allocations: 23.06 MB / 1.177 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003402/1.036, allocations: 1.738 MB / 1.178 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/1.038, allocations: 1.138 MB / 1.179 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/1.038, allocations: 101.7 kB / 1.179 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.152e-05/1.038, allocations: 55.16 kB / 1.18 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=84): time 5.761e-06/1.038, allocations: 3.984 kB / 1.18 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=87): time 0.008747/1.047, allocations: 4.009 MB / 1.183 GB, free: 4.938 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/1.047, allocations: 141.1 kB / 1.184 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/1.049, allocations: 0.8643 MB / 1.184 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001594/1.049, allocations: 41.7 kB / 1.184 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009702/1.05, allocations: 1.158 MB / 1.186 GB, free: 2.672 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004318/1.05, allocations: 307.7 kB / 1.186 GB, free: 2.367 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006098/1.051, allocations: 282.5 kB / 1.186 GB, free: 2.086 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000241/1.051, allocations: 406.7 kB / 1.187 GB, free: 1.68 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/1.053, allocations: 0.8218 MB / 1.187 GB, free: 0.8477 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/1.054, allocations: 1.318 MB / 1.189 GB, free: 15.31 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/1.058, allocations: 2.159 MB / 1.191 GB, free: 12.96 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.544e-05/1.058, allocations: 4 kB / 1.191 GB, free: 12.96 MB / 0.92 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004294/1.062, allocations: 2.21 MB / 1.193 GB, free: 10.74 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/1.062, allocations: 15.94 kB / 1.193 GB, free: 10.72 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.22e-05/1.062, allocations: 16 kB / 1.193 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.219e-05/1.062, allocations: 20 kB / 1.193 GB, free: 10.69 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001855/1.064, allocations: 415.9 kB / 1.193 GB, free: 10.28 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.613e-05/1.064, allocations: 27.92 kB / 1.193 GB, free: 10.25 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/1.066, allocations: 211.3 kB / 1.194 GB, free: 10.05 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/1.066, allocations: 63.98 kB / 1.194 GB, free: 9.984 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00338/1.07, allocations: 1.682 MB / 1.195 GB, free: 8.297 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00179/1.071, allocations: 1.19 MB / 1.196 GB, free: 6.875 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002944/1.074, allocations: 1.902 MB / 1.198 GB, free: 4.766 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.859e-05/1.074, allocations: 8.125 kB / 1.198 GB, free: 4.758 MB / 0.92 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.003793/1.078, allocations: 1.93 MB / 1.2 GB, free: 2.82 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/1.078, allocations: 11.94 kB / 1.2 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.367e-05/1.078, allocations: 20.16 kB / 1.2 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/1.078, allocations: 27.94 kB / 1.2 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/1.08, allocations: 363.4 kB / 1.201 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.551e-05/1.08, allocations: 31.86 kB / 1.201 GB, free: 2.375 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/1.082, allocations: 187.3 kB / 1.201 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/1.082, allocations: 56 kB / 1.201 GB, free: 2.137 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (156): * Single equations (assignments): 156 * 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.0005006/1.082, allocations: 268.5 kB / 1.201 GB, free: 1.867 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003863/1.083, allocations: 98.78 kB / 1.201 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003368/1.086, allocations: 1.85 MB / 1.203 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/1.086, allocations: 12 kB / 1.203 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/1.086, allocations: 4 kB / 1.203 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/1.086, allocations: 3.984 kB / 1.203 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/1.103, allocations: 9.588 MB / 1.212 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.478e-05/1.103, allocations: 12.25 kB / 1.212 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/1.104, allocations: 311.6 kB / 1.213 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.546e-05/1.104, allocations: 16 kB / 1.213 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/1.104, allocations: 32 kB / 1.213 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.7e-05/1.104, allocations: 31.8 kB / 1.213 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/1.104, allocations: 19.92 kB / 1.213 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/1.108, allocations: 2.402 MB / 1.215 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009271/1.109, allocations: 371.6 kB / 1.216 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003705/1.109, allocations: 35.98 kB / 1.216 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/1.111, allocations: 143.7 kB / 1.216 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/1.111, allocations: 91.67 kB / 1.216 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.749e-05/1.111, allocations: 36 kB / 1.216 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001147/1.112, allocations: 0.6122 MB / 1.216 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/1.112, allocations: 0 / 1.216 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003372/1.115, allocations: 0.7539 MB / 1.217 GB, free: 1.027 MB / 0.9356 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 (90): * Single equations (assignments): 90 * 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.0003378/1.116, allocations: 154.9 kB / 1.217 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005436/1.121, allocations: 3.037 MB / 1.22 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/1.121, allocations: 0 / 1.22 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/1.123, allocations: 0.9168 MB / 1.221 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/1.125, allocations: 308.3 kB / 1.221 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/1.137, allocations: 6.654 MB / 1.228 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003221/1.141, allocations: 2.187 MB / 1.23 GB, free: 3.562 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007104/1.141, allocations: 103.4 kB / 1.23 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of SimCode: time 1.203e-06/1.141, allocations: 3.938 kB / 1.23 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of Templates: time 0.04754/1.189, allocations: 28.08 MB / 1.258 GB, free: 7.461 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches