Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 104 kB / 15.61 MB, free: 148 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.001911/0.001911, allocations: 197.6 kB / 16.54 MB, free: 6.684 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.954/2.954, allocations: 472.7 MB / 0.7452 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 67.53 kB / 0.9121 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3034, 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_L): time 0.03725/0.3408, allocations: 32.62 MB / 1.1 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01685/0.3576, allocations: 10.27 MB / 1.11 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.3605, allocations: 147.2 kB / 1.11 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.009096/0.3697, allocations: 3.72 MB / 1.114 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005074/0.3748, allocations: 1.846 MB / 1.116 GB, free: 9.691 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004781/0.3796, allocations: 2.13 MB / 1.118 GB, free: 7.562 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.007469/0.3871, allocations: 7.333 MB / 1.125 GB, free: 212 kB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01043/0.3975, allocations: 9.487 MB / 1.134 GB, free: 6.605 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00493/0.4025, allocations: 3.159 MB / 1.137 GB, free: 3.438 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.4078, allocations: 3.485 MB / 1.141 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001479/0.4093, allocations: 0.6484 MB / 1.141 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004169/0.4135, allocations: 1.767 MB / 1.143 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.003228/0.4167, allocations: 2.554 MB / 1.146 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.004453/0.4212, allocations: 2.89 MB / 1.148 GB, free: 8.062 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.4333, allocations: 10.05 MB / 1.158 GB, free: 13.99 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4334, allocations: 0 / 1.158 GB, free: 13.99 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.484e-06/0.4334, allocations: 4 kB / 1.158 GB, free: 13.98 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003151/0.4337, allocations: 0 / 1.158 GB, free: 13.98 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01073/0.4444, allocations: 4.986 MB / 1.163 GB, free: 8.926 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4445, allocations: 8.031 kB / 1.163 GB, free: 8.918 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005052/0.4495, allocations: 0.959 MB / 1.164 GB, free: 7.953 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.4544, allocations: 2.859 MB / 1.167 GB, free: 5.035 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/0.4547, allocations: 349.7 kB / 1.167 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007363/0.4554, allocations: 468.2 kB / 1.168 GB, free: 4.234 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/0.4669, allocations: 7.667 MB / 1.175 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.467, allocations: 23.78 kB / 1.175 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004425/0.4675, allocations: 200 kB / 1.175 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002963/0.4678, allocations: 312.9 kB / 1.176 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0091/0.4769, allocations: 5.71 MB / 1.181 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03311/0.51, allocations: 35.1 MB / 1.215 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.5126, allocations: 2.156 MB / 1.218 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.514, allocations: 1.264 MB / 1.219 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-05/0.5141, allocations: 17.31 kB / 1.219 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.5141, allocations: 47.88 kB / 1.219 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=133): time 4.097e-06/0.5141, allocations: 0 / 1.219 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of matching and sorting (n=136): time 0.0127/0.5268, allocations: 7.088 MB / 1.226 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.5269, allocations: 64.72 kB / 1.226 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.5287, allocations: 1.488 MB / 1.227 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.631e-05/0.5288, allocations: 45.7 kB / 1.227 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.53, allocations: 2.008 MB / 1.229 GB, free: 0.9805 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.5303, allocations: 477.1 kB / 1.23 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004671/0.5308, allocations: 355.1 kB / 1.23 GB, free: 160 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.5309, allocations: 305.1 kB / 1.23 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.5321, allocations: 0.9135 MB / 1.231 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.5338, allocations: 1.593 MB / 1.233 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003091/0.5369, allocations: 2.729 MB / 1.235 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.5369, allocations: 4 kB / 1.235 GB, free: 9.992 MB / 0.9981 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005865/0.5428, allocations: 3.538 MB / 1.239 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.5428, allocations: 12 kB / 1.239 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/0.5429, allocations: 24 kB / 1.239 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002628/0.5455, allocations: 0.9119 MB / 1.24 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.5468, allocations: 351.4 kB / 1.24 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6643/1.211, allocations: 23.11 MB / 1.263 GB, free: 150.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/1.213, allocations: 96.27 kB / 1.263 GB, free: 150.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/1.213, allocations: 96.67 kB / 1.263 GB, free: 150.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002161/1.215, allocations: 1.604 MB / 1.264 GB, free: 149.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003251/1.215, allocations: 205.8 kB / 1.265 GB, free: 149.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004717/1.22, allocations: 2.988 MB / 1.268 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/1.22, allocations: 13.8 kB / 1.268 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.151e-05/1.22, allocations: 14.56 kB / 1.268 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/1.22, allocations: 10.2 kB / 1.268 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/1.234, allocations: 7.348 MB / 1.275 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/1.234, allocations: 4.094 kB / 1.275 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008102/1.235, allocations: 175.2 kB / 1.275 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002476/1.237, allocations: 0.8317 MB / 1.276 GB, free: 144.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/1.237, allocations: 30.09 kB / 1.276 GB, free: 144.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0175/1.255, allocations: 21.95 MB / 1.297 GB, free: 125.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.255, allocations: 4.438 kB / 1.297 GB, free: 125.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005047/1.26, allocations: 3.028 MB / 1.3 GB, free: 124.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000974/1.261, allocations: 457.9 kB / 1.301 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/1.261, allocations: 26.52 kB / 1.301 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008217/1.262, allocations: 76.91 kB / 1.301 GB, free: 124.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004598/1.262, allocations: 128.4 kB / 1.301 GB, free: 124.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.661e-05/1.263, allocations: 41.5 kB / 1.301 GB, free: 124.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001252/1.264, allocations: 0.9768 MB / 1.302 GB, free: 123.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.264, allocations: 0 / 1.302 GB, free: 123.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003046/1.267, allocations: 0.7841 MB / 1.303 GB, free: 123.7 MB / 0.9981 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/1.267, allocations: 150.8 kB / 1.303 GB, free: 123.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006471/1.274, allocations: 4.642 MB / 1.307 GB, free: 121.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.274, allocations: 0 / 1.307 GB, free: 121.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003384/1.277, allocations: 2.736 MB / 1.31 GB, free: 119.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003205/1.28, allocations: 0.7392 MB / 1.311 GB, free: 119.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/1.292, allocations: 7.21 MB / 1.318 GB, free: 115.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00286/1.295, allocations: 3.109 MB / 1.321 GB, free: 114.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001553/1.296, allocations: 452.5 kB / 1.321 GB, free: 114.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/1.297, allocations: 116.1 kB / 1.321 GB, free: 114.4 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/1.297, allocations: 0 / 1.321 GB, free: 114.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.05386/1.35, allocations: 35.72 MB / 1.356 GB, free: 85.09 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches