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.001005/0.001006, allocations: 91.06 kB / 15.36 MB, free: 0.7344 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.01184/0.01184, allocations: 173.2 kB / 16.26 MB, free: 6.68 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.427/1.427, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.529/2.529, allocations: 390.9 MB / 0.6663 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000442/0.0004421, allocations: 12 kB / 0.816 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7809/0.7813, allocations: 142.4 MB / 0.9551 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02822/0.8096, allocations: 25.73 MB / 0.9802 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01755/0.8272, allocations: 8.001 MB / 0.988 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004159/0.8314, allocations: 99.38 kB / 0.9881 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002939/0.8344, allocations: 0.5155 MB / 0.9886 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006269/0.8407, allocations: 1.497 MB / 0.9901 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00478/0.8455, allocations: 1.401 MB / 0.9914 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01136/0.8569, allocations: 8.689 MB / 0.9999 GB, free: 1.355 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01638/0.8733, allocations: 9.167 MB / 1.009 GB, free: 8.098 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.8775, allocations: 1.855 MB / 1.011 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004656/0.8822, allocations: 2.46 MB / 1.013 GB, free: 3.766 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001/0.8832, allocations: 212 kB / 1.013 GB, free: 3.559 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.8863, allocations: 1.197 MB / 1.014 GB, free: 2.359 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002732/0.8891, allocations: 1.668 MB / 1.016 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004086/0.8932, allocations: 1.961 MB / 1.018 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.9053, allocations: 7.674 MB / 1.025 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.9053, allocations: 0 / 1.025 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.757e-06/0.9053, allocations: 0 / 1.025 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0004016/0.9057, allocations: 0 / 1.025 GB, free: 7.012 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.01131/0.9171, allocations: 3.417 MB / 1.029 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.9171, allocations: 12.03 kB / 1.029 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005237/0.9224, allocations: 0.8078 MB / 1.03 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005204/0.9276, allocations: 2.424 MB / 1.032 GB, free: 232 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.9279, allocations: 279.7 kB / 1.032 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.9293, allocations: 380.4 kB / 1.033 GB, free: 15.58 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.9434, allocations: 5.992 MB / 1.038 GB, free: 9.336 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.9436, allocations: 15.78 kB / 1.038 GB, free: 9.32 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000442/0.944, allocations: 160 kB / 1.039 GB, free: 9.164 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006245/0.9446, allocations: 286.8 kB / 1.039 GB, free: 8.883 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009719/0.9544, allocations: 4.52 MB / 1.043 GB, free: 4.355 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04899/1.003, allocations: 27.69 MB / 1.07 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/1.006, allocations: 1.122 MB / 1.071 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002207/1.009, allocations: 1.023 MB / 1.072 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-05/1.009, allocations: 13 kB / 1.072 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.272e-05/1.009, allocations: 43.56 kB / 1.073 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 4.278e-06/1.009, allocations: 4 kB / 1.073 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.03047/1.039, allocations: 9.682 MB / 1.082 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.039, allocations: 64.72 kB / 1.082 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/1.042, allocations: 1.494 MB / 1.084 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002289/1.042, allocations: 45.7 kB / 1.084 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001304/1.044, allocations: 1.671 MB / 1.085 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006147/1.044, allocations: 473.3 kB / 1.086 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/1.045, allocations: 137.6 kB / 1.086 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.045, allocations: 309.1 kB / 1.086 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/1.046, allocations: 0.9213 MB / 1.087 GB, free: 4.887 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/1.049, allocations: 1.459 MB / 1.088 GB, free: 3.18 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004584/1.053, allocations: 2.542 MB / 1.091 GB, free: 408 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.914e-05/1.053, allocations: 4 kB / 1.091 GB, free: 404 kB / 0.8419 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007274/1.061, allocations: 3.29 MB / 1.094 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/1.061, allocations: 17.78 kB / 1.094 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.124e-05/1.061, allocations: 16 kB / 1.094 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/1.063, allocations: 0.7373 MB / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/1.065, allocations: 387.3 kB / 1.095 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01663/1.082, allocations: 15.77 MB / 1.111 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/1.083, allocations: 112.1 kB / 1.111 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/1.084, allocations: 79.97 kB / 1.111 GB, free: 10.73 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.002663/1.086, allocations: 1.305 MB / 1.112 GB, free: 9.414 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004878/1.087, allocations: 209.6 kB / 1.112 GB, free: 9.207 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005643/1.092, allocations: 2.784 MB / 1.115 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/1.092, allocations: 12 kB / 1.115 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.831e-05/1.093, allocations: 8 kB / 1.115 GB, free: 6.363 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.093, allocations: 3.984 kB / 1.115 GB, free: 6.359 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/1.104, allocations: 6.229 MB / 1.121 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.104, allocations: 4 kB / 1.121 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/1.105, allocations: 231.6 kB / 1.121 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/1.108, allocations: 0.6711 MB / 1.122 GB, free: 15.03 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/1.108, allocations: 32 kB / 1.122 GB, free: 15 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01584/1.124, allocations: 15.52 MB / 1.137 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/1.124, allocations: 11.94 kB / 1.137 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006862/1.13, allocations: 4 MB / 1.141 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.132, allocations: 462.5 kB / 1.142 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/1.132, allocations: 35.98 kB / 1.142 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009562/1.133, allocations: 83.89 kB / 1.142 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003967/1.133, allocations: 116.7 kB / 1.142 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.839e-05/1.134, allocations: 40.06 kB / 1.142 GB, free: 9.414 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001524/1.135, allocations: 0.9942 MB / 1.143 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.81e-07/1.135, allocations: 0 / 1.143 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002828/1.138, allocations: 0.6875 MB / 1.143 GB, free: 7.742 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.0003639/1.138, allocations: 147.1 kB / 1.144 GB, free: 7.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005573/1.144, allocations: 3.514 MB / 1.147 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.144, allocations: 0 / 1.147 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003405/1.147, allocations: 2.284 MB / 1.149 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004442/1.152, allocations: 0.6261 MB / 1.15 GB, free: 0.9414 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/1.166, allocations: 8.198 MB / 1.158 GB, free: 8.66 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003152/1.17, allocations: 2.672 MB / 1.16 GB, free: 5.953 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002062/1.172, allocations: 485.4 kB / 1.161 GB, free: 5.477 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004897/1.172, allocations: 115.4 kB / 1.161 GB, free: 5.363 MB / 0.92 GB Notification: Performance of SimCode: time 1.773e-06/1.172, allocations: 4 kB / 1.161 GB, free: 5.359 MB / 0.92 GB Notification: Performance of Templates: time 0.06255/1.235, allocations: 32.04 MB / 1.192 GB, free: 5.785 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