Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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_RL,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001151/0.001151, allocations: 195.8 kB / 16.14 MB, free: 6.691 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.42/1.42, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 64.14 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7495/0.7509, allocations: 140.4 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03023/0.7812, allocations: 26.43 MB / 0.9748 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01855/0.7998, allocations: 8.078 MB / 0.9826 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.8036, allocations: 104.1 kB / 0.9827 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.007602/0.8113, allocations: 2.565 MB / 0.9852 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005917/0.8172, allocations: 1.486 MB / 0.9867 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00509/0.8224, allocations: 1.543 MB / 0.9882 GB, free: 9.809 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01162/0.834, allocations: 8.693 MB / 0.9967 GB, free: 1.094 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01461/0.8487, allocations: 8.198 MB / 1.005 GB, free: 8.797 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005463/0.8542, allocations: 2.195 MB / 1.007 GB, free: 6.594 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00592/0.8601, allocations: 2.881 MB / 1.01 GB, free: 3.703 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.002233/0.8624, allocations: 344 kB / 1.01 GB, free: 3.367 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00514/0.8675, allocations: 1.33 MB / 1.011 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.004106/0.8717, allocations: 1.883 MB / 1.013 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005961/0.8777, allocations: 2.186 MB / 1.015 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.889, allocations: 7.926 MB / 1.023 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.889, allocations: 0 / 1.023 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.268e-06/0.889, allocations: 3.984 kB / 1.023 GB, free: 6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002854/0.8893, allocations: 0 / 1.023 GB, free: 6 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.0113/0.9006, allocations: 4.232 MB / 1.027 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.9007, allocations: 8.031 kB / 1.027 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004655/0.9054, allocations: 0.8039 MB / 1.028 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004958/0.9103, allocations: 2.428 MB / 1.03 GB, free: 14.4 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.9106, allocations: 271.6 kB / 1.031 GB, free: 14.14 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009794/0.9116, allocations: 380.5 kB / 1.031 GB, free: 13.77 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.9241, allocations: 5.98 MB / 1.037 GB, free: 7.531 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.9242, allocations: 27.78 kB / 1.037 GB, free: 7.504 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004729/0.9247, allocations: 160 kB / 1.037 GB, free: 7.348 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006093/0.9253, allocations: 278.9 kB / 1.037 GB, free: 7.074 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009068/0.9344, allocations: 4.52 MB / 1.042 GB, free: 2.547 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.034/0.9684, allocations: 27.65 MB / 1.069 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.9703, allocations: 1.123 MB / 1.07 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.9717, allocations: 1.028 MB / 1.071 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.94e-05/0.9717, allocations: 13 kB / 1.071 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.9718, allocations: 43.56 kB / 1.071 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 2.865e-06/0.9718, allocations: 0 / 1.071 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.0218/0.9936, allocations: 9.657 MB / 1.08 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.9937, allocations: 68.66 kB / 1.08 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002724/0.9965, allocations: 1.494 MB / 1.082 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002843/0.9968, allocations: 53.7 kB / 1.082 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001341/0.9981, allocations: 1.667 MB / 1.083 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005524/0.9987, allocations: 461.4 kB / 1.084 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005589/0.9993, allocations: 331.2 kB / 1.084 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.9994, allocations: 313 kB / 1.084 GB, free: 3.879 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/1.001, allocations: 0.9135 MB / 1.085 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/1.003, allocations: 1.463 MB / 1.087 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003265/1.006, allocations: 2.542 MB / 1.089 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/1.006, allocations: 7.938 kB / 1.089 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006063/1.012, allocations: 3.29 MB / 1.092 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/1.012, allocations: 12 kB / 1.093 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.854e-05/1.012, allocations: 19.94 kB / 1.093 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002431/1.015, allocations: 0.7374 MB / 1.093 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/1.016, allocations: 391.3 kB / 1.094 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/1.033, allocations: 15.77 MB / 1.109 GB, free: 8.984 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/1.034, allocations: 107.9 kB / 1.109 GB, free: 8.879 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/1.035, allocations: 72 kB / 1.109 GB, free: 8.809 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(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,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002369/1.037, allocations: 1.315 MB / 1.11 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004654/1.037, allocations: 197.7 kB / 1.111 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00506/1.043, allocations: 2.792 MB / 1.113 GB, free: 4.457 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/1.043, allocations: 12 kB / 1.113 GB, free: 4.445 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.043, allocations: 8 kB / 1.113 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/1.043, allocations: 7.969 kB / 1.113 GB, free: 4.43 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.053, allocations: 6.221 MB / 1.119 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.053, allocations: 7.938 kB / 1.119 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.054, allocations: 231.6 kB / 1.12 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/1.056, allocations: 0.6634 MB / 1.12 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/1.056, allocations: 32 kB / 1.12 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01433/1.071, allocations: 15.51 MB / 1.136 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/1.071, allocations: 15.92 kB / 1.136 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006245/1.077, allocations: 4.008 MB / 1.139 GB, free: 8.238 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009225/1.078, allocations: 450.7 kB / 1.14 GB, free: 7.777 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/1.078, allocations: 36.03 kB / 1.14 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008875/1.079, allocations: 83.89 kB / 1.14 GB, free: 7.66 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000354/1.08, allocations: 112.7 kB / 1.14 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.405e-05/1.08, allocations: 51.92 kB / 1.14 GB, free: 7.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00139/1.081, allocations: 0.9903 MB / 1.141 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/1.081, allocations: 0 / 1.141 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002421/1.083, allocations: 0.6836 MB / 1.142 GB, free: 5.836 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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 Backend phase and start with SimCode phase: time 0.0002754/1.084, allocations: 155 kB / 1.142 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005212/1.089, allocations: 3.503 MB / 1.145 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/1.089, allocations: 0 / 1.145 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003604/1.093, allocations: 2.288 MB / 1.148 GB, free: 15.66 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003236/1.096, allocations: 0.621 MB / 1.148 GB, free: 15.04 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/1.108, allocations: 8.114 MB / 1.156 GB, free: 6.84 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002738/1.111, allocations: 2.664 MB / 1.159 GB, free: 4.141 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001756/1.112, allocations: 493.4 kB / 1.159 GB, free: 3.656 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/1.113, allocations: 115.4 kB / 1.159 GB, free: 3.543 MB / 0.92 GB Notification: Performance of SimCode: time 1.443e-06/1.113, allocations: 0 / 1.159 GB, free: 3.543 MB / 0.92 GB Notification: Performance of Templates: time 0.07177/1.185, allocations: 32.58 MB / 1.191 GB, free: 3.426 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches