Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.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_9_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_9_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.008751/0.008751, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001904/0.001904, allocations: 195.2 kB / 16.79 MB, free: 5.809 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.421/1.421, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.363/2.363, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6185/0.6199, allocations: 140.4 MB / 0.9496 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03183/0.6518, allocations: 32.31 MB / 0.9812 GB, free: 452 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01728/0.6691, allocations: 10.28 MB / 0.9912 GB, free: 7.41 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003474/0.6727, allocations: 135.2 kB / 0.9913 GB, free: 7.277 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.008786/0.6815, allocations: 3.473 MB / 0.9947 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005562/0.6871, allocations: 1.739 MB / 0.9964 GB, free: 2.055 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005738/0.6929, allocations: 1.941 MB / 0.9983 GB, free: 120 kB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01197/0.7048, allocations: 10.58 MB / 1.009 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01764/0.7225, allocations: 10.62 MB / 1.019 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005342/0.7279, allocations: 2.697 MB / 1.022 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00588/0.7338, allocations: 3.548 MB / 1.025 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001904/0.7358, allocations: 452 kB / 1.026 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004804/0.7406, allocations: 1.88 MB / 1.027 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004126/0.7447, allocations: 2.347 MB / 1.03 GB, free: 15.83 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006464/0.7512, allocations: 2.66 MB / 1.032 GB, free: 13.16 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00968/0.7609, allocations: 8.586 MB / 1.041 GB, free: 4.555 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.7609, allocations: 0 / 1.041 GB, free: 4.555 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.162e-06/0.761, allocations: 4 kB / 1.041 GB, free: 4.551 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003074/0.7613, allocations: 0 / 1.041 GB, free: 4.551 MB / 0.795 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.01232/0.7736, allocations: 4.994 MB / 1.046 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.7737, allocations: 8.031 kB / 1.046 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006249/0.7799, allocations: 0.9551 MB / 1.046 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0059/0.7859, allocations: 2.859 MB / 1.049 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003439/0.7862, allocations: 353.7 kB / 1.05 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/0.7878, allocations: 460.2 kB / 1.05 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01719/0.805, allocations: 7.663 MB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002612/0.8053, allocations: 31.77 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001382/0.8067, allocations: 200 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004049/0.8071, allocations: 309 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.8192, allocations: 5.714 MB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04501/0.8642, allocations: 35.1 MB / 1.098 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/0.8672, allocations: 2.164 MB / 1.1 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.8689, allocations: 1.27 MB / 1.101 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.869, allocations: 13.31 kB / 1.101 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.8691, allocations: 51.81 kB / 1.101 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=133): time 3.387e-06/0.8691, allocations: 0 / 1.101 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of matching and sorting (n=136): time 0.01389/0.883, allocations: 7.088 MB / 1.108 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.8831, allocations: 64.72 kB / 1.108 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/0.8852, allocations: 1.48 MB / 1.11 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001375/0.8854, allocations: 49.7 kB / 1.11 GB, free: 9.582 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.8866, allocations: 2.012 MB / 1.112 GB, free: 7.543 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004526/0.8871, allocations: 489 kB / 1.112 GB, free: 7.059 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005364/0.8876, allocations: 343.2 kB / 1.113 GB, free: 6.719 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.8877, allocations: 309.1 kB / 1.113 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.889, allocations: 0.9096 MB / 1.114 GB, free: 5.504 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.8907, allocations: 1.593 MB / 1.115 GB, free: 3.602 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003178/0.8939, allocations: 2.741 MB / 1.118 GB, free: 0.5508 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.8939, allocations: 4 kB / 1.118 GB, free: 0.5469 MB / 0.8731 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005907/0.8998, allocations: 3.526 MB / 1.121 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.8999, allocations: 16 kB / 1.121 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/0.8999, allocations: 24.84 kB / 1.121 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/0.9025, allocations: 0.8998 MB / 1.122 GB, free: 11.99 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.9037, allocations: 347.4 kB / 1.123 GB, free: 11.65 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01905/0.9227, allocations: 21.21 MB / 1.143 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.9243, allocations: 104 kB / 1.143 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002449/0.9245, allocations: 84 kB / 1.144 GB, free: 4.66 MB / 0.9044 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.002637/0.9272, allocations: 1.613 MB / 1.145 GB, free: 3.035 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.9276, allocations: 213.7 kB / 1.145 GB, free: 2.824 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005417/0.9331, allocations: 2.994 MB / 1.148 GB, free: 15.77 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.9331, allocations: 15.98 kB / 1.148 GB, free: 15.76 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.189e-05/0.9331, allocations: 12 kB / 1.148 GB, free: 15.75 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/0.9332, allocations: 3.984 kB / 1.148 GB, free: 15.74 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.9459, allocations: 7.329 MB / 1.155 GB, free: 8.18 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.946, allocations: 11.94 kB / 1.155 GB, free: 8.168 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.9468, allocations: 175.7 kB / 1.156 GB, free: 7.996 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002481/0.9492, allocations: 0.8301 MB / 1.156 GB, free: 7.129 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.9494, allocations: 28 kB / 1.156 GB, free: 7.102 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/0.9677, allocations: 20.3 MB / 1.176 GB, free: 1.195 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.9677, allocations: 8 kB / 1.176 GB, free: 1.188 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.9734, allocations: 3.031 MB / 1.179 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/0.9749, allocations: 454.5 kB / 1.18 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006863/0.9756, allocations: 35.91 kB / 1.18 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.9768, allocations: 67.91 kB / 1.18 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004258/0.9773, allocations: 128.7 kB / 1.18 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.9774, allocations: 40 kB / 1.18 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001612/0.979, allocations: 0.9756 MB / 1.181 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.81e-07/0.979, allocations: 0 / 1.181 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003216/0.9822, allocations: 0.7891 MB / 1.182 GB, free: 11.52 MB / 0.9512 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.0002921/0.9825, allocations: 139.8 kB / 1.182 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005704/0.9883, allocations: 4.008 MB / 1.186 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.9883, allocations: 0 / 1.186 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.003579/0.9919, allocations: 2.744 MB / 1.188 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/0.9953, allocations: 0.6712 MB / 1.189 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/1.01, allocations: 9.789 MB / 1.199 GB, free: 9.77 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003897/1.014, allocations: 3.179 MB / 1.202 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/1.015, allocations: 131.4 kB / 1.202 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of SimCode: time 1.423e-06/1.015, allocations: 3.938 kB / 1.202 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of Templates: time 0.7156/1.73, allocations: 321.5 MB / 1.516 GB, free: 34.93 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches