Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001201/0.001201, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 223.3 MB / 240 MB, free: 5.312 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.543/2.543, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003832, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8117/0.8121, allocations: 142.4 MB / 0.9544 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01531/0.8274, allocations: 12.67 MB / 0.9668 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01474/0.8423, allocations: 8.753 MB / 0.9754 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.8441, allocations: 50.84 kB / 0.9754 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.8453, allocations: 266.1 kB / 0.9757 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005321/0.8506, allocations: 1.273 MB / 0.9769 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002075/0.8527, allocations: 0.5133 MB / 0.9774 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004632/0.8574, allocations: 2.671 MB / 0.98 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003689/0.8611, allocations: 1.796 MB / 0.9818 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.8631, allocations: 0.8498 MB / 0.9826 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001827/0.865, allocations: 1.02 MB / 0.9836 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.8652, allocations: 72 kB / 0.9837 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001221/0.8664, allocations: 451.4 kB / 0.9841 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005265/0.867, allocations: 0.4984 MB / 0.9846 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004296/0.8674, allocations: 340.8 kB / 0.9849 GB, free: 224 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002362/0.8698, allocations: 2.119 MB / 0.987 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.8698, allocations: 4 kB / 0.987 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8698, allocations: 0 / 0.987 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.431e-05/0.8698, allocations: 0 / 0.987 GB, free: 14.09 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003611/0.8735, allocations: 1.827 MB / 0.9888 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.8735, allocations: 12.03 kB / 0.9888 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/0.8842, allocations: 2.154 MB / 0.9909 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003661/0.8879, allocations: 1.154 MB / 0.992 GB, free: 8.824 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.8881, allocations: 86.31 kB / 0.9921 GB, free: 8.738 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/0.8884, allocations: 127.9 kB / 0.9922 GB, free: 8.613 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005742/0.8942, allocations: 2.7 MB / 0.9949 GB, free: 5.766 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/0.8942, allocations: 7.938 kB / 0.9949 GB, free: 5.758 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.8944, allocations: 55.98 kB / 0.9949 GB, free: 5.703 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005423/0.895, allocations: 182.1 kB / 0.9951 GB, free: 5.523 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007094/0.9021, allocations: 2.834 MB / 0.9979 GB, free: 2.68 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.9169, allocations: 10.56 MB / 1.008 GB, free: 7.527 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006108/0.923, allocations: 2.568 MB / 1.011 GB, free: 4.898 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002921/0.926, allocations: 1.303 MB / 1.012 GB, free: 3.59 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-05/0.9261, allocations: 16.98 kB / 1.012 GB, free: 3.574 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.9261, allocations: 43.56 kB / 1.012 GB, free: 3.523 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 2.675e-06/0.9261, allocations: 0 / 1.012 GB, free: 3.523 MB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04196/0.9681, allocations: 13.44 MB / 1.025 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.9682, allocations: 68.72 kB / 1.025 GB, free: 5.789 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.9699, allocations: 1.101 MB / 1.026 GB, free: 4.672 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002188/0.9701, allocations: 49.7 kB / 1.026 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006186/0.9708, allocations: 0.7156 MB / 1.027 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005466/0.9713, allocations: 457.4 kB / 1.027 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.9714, allocations: 24 kB / 1.027 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.9716, allocations: 361.9 kB / 1.028 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003095/0.9747, allocations: 1.354 MB / 1.029 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003168/0.9779, allocations: 1.62 MB / 1.031 GB, free: 15.99 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.9811, allocations: 1.466 MB / 1.032 GB, free: 14.52 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.9811, allocations: 0 / 1.032 GB, free: 14.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01065/0.9918, allocations: 4.466 MB / 1.037 GB, free: 10 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.9918, allocations: 9.25 kB / 1.037 GB, free: 9.996 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.9918, allocations: 8 kB / 1.037 GB, free: 9.988 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004879/0.9967, allocations: 1.423 MB / 1.038 GB, free: 8.523 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.9986, allocations: 455.1 kB / 1.038 GB, free: 8.078 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02391/1.023, allocations: 24.51 MB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002304/1.025, allocations: 315.6 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/1.025, allocations: 63.91 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008476/1.026, allocations: 433.5 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/1.026, allocations: 158.1 kB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/1.037, allocations: 4.492 MB / 1.068 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.037, allocations: 16 kB / 1.068 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.496e-05/1.037, allocations: 12 kB / 1.068 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/1.037, allocations: 7.984 kB / 1.068 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/1.051, allocations: 6.821 MB / 1.074 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.051, allocations: 4 kB / 1.074 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.053, allocations: 399.7 kB / 1.075 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00425/1.057, allocations: 1.306 MB / 1.076 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/1.057, allocations: 35.97 kB / 1.076 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02347/1.081, allocations: 23.51 MB / 1.099 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.081, allocations: 0 / 1.099 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009995/1.091, allocations: 4.231 MB / 1.103 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/1.092, allocations: 458.9 kB / 1.104 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002506/1.092, allocations: 27.98 kB / 1.104 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001811/1.094, allocations: 315.5 kB / 1.104 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/1.094, allocations: 120.8 kB / 1.104 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/1.094, allocations: 47.97 kB / 1.104 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001048/1.095, allocations: 0.7487 MB / 1.105 GB, free: 212 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.71e-07/1.095, allocations: 0 / 1.105 GB, free: 212 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002058/1.097, allocations: 0.5704 MB / 1.105 GB, free: 15.63 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(2,100.0%) 4,(3,100.0%) 9,(2,100.0%) 4,(3,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002921/1.098, allocations: 147.7 kB / 1.105 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01014/1.108, allocations: 5.135 MB / 1.11 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.108, allocations: 4.125 kB / 1.11 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006699/1.115, allocations: 3.504 MB / 1.114 GB, free: 6.504 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/1.117, allocations: 0.5031 MB / 1.114 GB, free: 6.012 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008492/1.126, allocations: 4.527 MB / 1.119 GB, free: 1.441 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/1.127, allocations: 1.477 MB / 1.12 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001848/1.129, allocations: 429.5 kB / 1.121 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/1.129, allocations: 111.4 kB / 1.121 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of SimCode: time 1.102e-06/1.129, allocations: 4 kB / 1.121 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of Templates: time 0.05976/1.189, allocations: 36.13 MB / 1.156 GB, free: 11.68 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches