Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000872/0.000872, allocations: 87.98 kB / 16.02 MB, free: 80 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.0009762/0.0009763, allocations: 177.4 kB / 16.92 MB, free: 6.23 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.367/1.367, allocations: 223.3 MB / 241 MB, free: 5.027 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.615/2.615, allocations: 437.8 MB / 0.7128 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003736, allocations: 15.98 kB / 0.8735 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7556/0.756, allocations: 153.8 MB / 1.024 GB, free: 16 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03817/0.7942, allocations: 36.73 MB / 1.06 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02062/0.8149, allocations: 10.86 MB / 1.07 GB, free: 260 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004896/0.8199, allocations: 139.2 kB / 1.07 GB, free: 120 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003547/0.8235, allocations: 0.7754 MB / 1.071 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.008052/0.8315, allocations: 2.092 MB / 1.073 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006367/0.8379, allocations: 1.797 MB / 1.075 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01633/0.8543, allocations: 13.18 MB / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02761/0.882, allocations: 14.46 MB / 1.102 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007254/0.8893, allocations: 2.836 MB / 1.105 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007951/0.8973, allocations: 3.869 MB / 1.108 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002129/0.8995, allocations: 344 kB / 1.109 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004951/0.9044, allocations: 1.33 MB / 1.11 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005442/0.9099, allocations: 2.529 MB / 1.113 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.008104/0.918, allocations: 2.968 MB / 1.115 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.9341, allocations: 10.22 MB / 1.125 GB, free: 7.492 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.9341, allocations: 3.938 kB / 1.125 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.705e-06/0.9341, allocations: 4 kB / 1.125 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.000511/0.9346, allocations: 0 / 1.125 GB, free: 7.484 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01595/0.9506, allocations: 5.082 MB / 1.13 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/0.9507, allocations: 8.031 kB / 1.13 GB, free: 2.324 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007013/0.9577, allocations: 1.071 MB / 1.131 GB, free: 1.246 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008361/0.9661, allocations: 3.423 MB / 1.135 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004988/0.9666, allocations: 423.8 kB / 1.135 GB, free: 13.36 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00253/0.9692, allocations: 0.5433 MB / 1.136 GB, free: 12.81 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.024/0.9932, allocations: 9.377 MB / 1.145 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003275/0.9936, allocations: 19.78 kB / 1.145 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/0.9955, allocations: 248 kB / 1.145 GB, free: 2.84 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006651/0.9961, allocations: 418.9 kB / 1.145 GB, free: 2.43 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/1.011, allocations: 7.124 MB / 1.152 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04813/1.059, allocations: 41.37 MB / 1.193 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004671/1.064, allocations: 3.112 MB / 1.196 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/1.067, allocations: 2.114 MB / 1.198 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.762e-05/1.067, allocations: 25.98 kB / 1.198 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.262e-05/1.067, allocations: 56.56 kB / 1.198 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=209): time 3.466e-06/1.067, allocations: 11.94 kB / 1.198 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of matching and sorting (n=212): time 0.02425/1.091, allocations: 10.61 MB / 1.208 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/1.092, allocations: 77.34 kB / 1.208 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/1.094, allocations: 2.009 MB / 1.21 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0002459/1.095, allocations: 61.7 kB / 1.211 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.00162/1.096, allocations: 2.4 MB / 1.213 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007149/1.097, allocations: 0.7278 MB / 1.214 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003035/1.097, allocations: 215.1 kB / 1.214 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.908e-05/1.097, allocations: 301.1 kB / 1.214 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/1.099, allocations: 1.372 MB / 1.215 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00243/1.102, allocations: 2.108 MB / 1.217 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004833/1.107, allocations: 3.77 MB / 1.221 GB, free: 416 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/1.107, allocations: 8 kB / 1.221 GB, free: 408 kB / 0.9669 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008736/1.115, allocations: 5.072 MB / 1.226 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/1.116, allocations: 12 kB / 1.226 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/1.116, allocations: 24 kB / 1.226 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003679/1.119, allocations: 1.572 MB / 1.228 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/1.121, allocations: 455.2 kB / 1.228 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02203/1.143, allocations: 17.11 MB / 1.245 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/1.146, allocations: 143.9 kB / 1.245 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000482/1.146, allocations: 108.1 kB / 1.245 GB, free: 7.348 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004171/1.151, allocations: 1.952 MB / 1.247 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000863/1.151, allocations: 288.6 kB / 1.247 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008096/1.16, allocations: 4.459 MB / 1.252 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/1.16, allocations: 20 kB / 1.252 GB, free: 0.5898 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.563e-05/1.16, allocations: 16 kB / 1.252 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.362e-05/1.16, allocations: 11.95 kB / 1.252 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6982/1.858, allocations: 9.657 MB / 1.261 GB, free: 205.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.644e-05/1.858, allocations: 5.688 kB / 1.261 GB, free: 205.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002214/1.86, allocations: 237.8 kB / 1.261 GB, free: 205.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008438/1.869, allocations: 1.421 MB / 1.263 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005729/1.869, allocations: 41.3 kB / 1.263 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03922/1.908, allocations: 17.12 MB / 1.279 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/1.909, allocations: 8.062 kB / 1.279 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/1.922, allocations: 4.533 MB / 1.284 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002588/1.924, allocations: 0.6349 MB / 1.284 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/1.926, allocations: 43.84 kB / 1.285 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003151/1.929, allocations: 116.8 kB / 1.285 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009394/1.93, allocations: 185.6 kB / 1.285 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003274/1.93, allocations: 59.31 kB / 1.285 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003215/1.933, allocations: 1.316 MB / 1.286 GB, free: 192.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.61e-07/1.933, allocations: 2.875 kB / 1.286 GB, free: 192.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005987/1.939, allocations: 1.142 MB / 1.287 GB, free: 192.6 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005691/1.94, allocations: 164.5 kB / 1.287 GB, free: 192.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01172/1.952, allocations: 4.701 MB / 1.292 GB, free: 190.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.952, allocations: 3.781 kB / 1.292 GB, free: 190.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007723/1.96, allocations: 2.923 MB / 1.295 GB, free: 189 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009603/1.969, allocations: 0.8328 MB / 1.296 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/1.991, allocations: 12.55 MB / 1.308 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004918/1.996, allocations: 3.784 MB / 1.312 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/1.997, allocations: 167.4 kB / 1.312 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.997, allocations: 0 / 1.312 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.1558/2.153, allocations: 171.2 MB / 1.479 GB, free: 4.223 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches