Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.967/2.967, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 65.61 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3326, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.0225/0.3551, allocations: 20.26 MB / 1.088 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01115/0.3663, allocations: 6.434 MB / 1.094 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.3682, allocations: 87.56 kB / 1.094 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005786/0.3741, allocations: 2.247 MB / 1.097 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003684/0.3778, allocations: 1.181 MB / 1.098 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003674/0.3815, allocations: 1.286 MB / 1.099 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005783/0.3872, allocations: 4.85 MB / 1.104 GB, free: 5.984 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007469/0.3947, allocations: 5.63 MB / 1.109 GB, free: 292 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003017/0.3978, allocations: 2.068 MB / 1.111 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003594/0.4014, allocations: 2.344 MB / 1.114 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.4026, allocations: 432 kB / 1.114 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002556/0.4051, allocations: 1.003 MB / 1.115 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002204/0.4074, allocations: 1.665 MB / 1.117 GB, free: 8.766 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003492/0.4109, allocations: 1.918 MB / 1.118 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.007093/0.418, allocations: 6.478 MB / 1.125 GB, free: 352 kB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.418, allocations: 4 kB / 1.125 GB, free: 348 kB / 0.8731 GB Notification: Performance of FrontEnd: time 2.464e-06/0.418, allocations: 0 / 1.125 GB, free: 348 kB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001486/0.4182, allocations: 4 kB / 1.125 GB, free: 344 kB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.007114/0.4253, allocations: 3.448 MB / 1.128 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4254, allocations: 8.031 kB / 1.128 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003324/0.4287, allocations: 0.6332 MB / 1.129 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.432, allocations: 1.943 MB / 1.131 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.4321, allocations: 222.3 kB / 1.131 GB, free: 9.957 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004513/0.4326, allocations: 292.3 kB / 1.131 GB, free: 9.672 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007602/0.4402, allocations: 4.89 MB / 1.136 GB, free: 4.582 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.969e-05/0.4403, allocations: 19.86 kB / 1.136 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003002/0.4406, allocations: 128 kB / 1.136 GB, free: 4.438 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004027/0.441, allocations: 225.7 kB / 1.136 GB, free: 4.215 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005975/0.447, allocations: 3.75 MB / 1.14 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02379/0.4708, allocations: 21.57 MB / 1.161 GB, free: 8.883 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.4725, allocations: 1.306 MB / 1.162 GB, free: 7.566 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.4739, allocations: 1.046 MB / 1.163 GB, free: 6.52 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 6.194e-05/0.474, allocations: 13 kB / 1.163 GB, free: 6.508 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.474, allocations: 47.5 kB / 1.163 GB, free: 6.453 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 2.595e-06/0.474, allocations: 0 / 1.163 GB, free: 6.453 MB / 0.92 GB Notification: Performance of matching and sorting (n=138): time 0.02425/0.4983, allocations: 8.656 MB / 1.172 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.4983, allocations: 64.72 kB / 1.172 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.5, allocations: 1.13 MB / 1.173 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.052e-05/0.5001, allocations: 45.7 kB / 1.173 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008222/0.5009, allocations: 1.3 MB / 1.174 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.5013, allocations: 481.2 kB / 1.175 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004676/0.5018, allocations: 295.2 kB / 1.175 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.233e-05/0.5019, allocations: 309.1 kB / 1.175 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.5031, allocations: 0.9135 MB / 1.176 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.5046, allocations: 1.33 MB / 1.177 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002919/0.5075, allocations: 2.426 MB / 1.18 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.5075, allocations: 4 kB / 1.18 GB, free: 5.066 MB / 0.9356 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00583/0.5134, allocations: 3.463 MB / 1.183 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.5134, allocations: 13.09 kB / 1.183 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.5134, allocations: 12 kB / 1.183 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003353/0.5168, allocations: 1.194 MB / 1.184 GB, free: 368 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009568/0.5178, allocations: 259.6 kB / 1.185 GB, free: 108 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/0.5352, allocations: 13.85 MB / 1.198 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.5367, allocations: 91.91 kB / 1.198 GB, free: 1.754 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/0.5369, allocations: 64 kB / 1.198 GB, free: 1.691 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002092/0.539, allocations: 1.114 MB / 1.199 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004651/0.5395, allocations: 158.1 kB / 1.2 GB, free: 420 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005695/0.5452, allocations: 3.169 MB / 1.203 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5452, allocations: 15.98 kB / 1.203 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.27e-05/0.5452, allocations: 15.94 kB / 1.203 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.5453, allocations: 11.97 kB / 1.203 GB, free: 13.17 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.5565, allocations: 6.249 MB / 1.209 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.5566, allocations: 7.984 kB / 1.209 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000598/0.5572, allocations: 151.7 kB / 1.209 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002953/0.5601, allocations: 1.074 MB / 1.21 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.5603, allocations: 28 kB / 1.21 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01732/0.5776, allocations: 13.55 MB / 1.223 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.5776, allocations: 4 kB / 1.223 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/0.5832, allocations: 3.154 MB / 1.226 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008974/0.5841, allocations: 423 kB / 1.227 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.5845, allocations: 35.92 kB / 1.227 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000953/0.5855, allocations: 79.91 kB / 1.227 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003922/0.5859, allocations: 128.7 kB / 1.227 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-05/0.586, allocations: 36 kB / 1.227 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001131/0.5871, allocations: 0.771 MB / 1.228 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5871, allocations: 0 / 1.228 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002187/0.5893, allocations: 0.6562 MB / 1.228 GB, free: 2.176 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002804/0.5896, allocations: 147.5 kB / 1.229 GB, free: 2.023 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.006431/0.596, allocations: 3.646 MB / 1.232 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5961, allocations: 0 / 1.232 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/0.5996, allocations: 1.94 MB / 1.234 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003249/0.6029, allocations: 0.5014 MB / 1.235 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.6154, allocations: 5.441 MB / 1.24 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003196/0.6186, allocations: 2.336 MB / 1.242 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001216/0.6198, allocations: 354.1 kB / 1.242 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.6201, allocations: 87.42 kB / 1.243 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of SimCode: time 7.81e-07/0.6201, allocations: 4 kB / 1.243 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of Templates: time 0.5869/1.207, allocations: 32.66 MB / 1.274 GB, free: 159.1 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches