Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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 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_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004943/0.004943, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001221/0.001221, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.404/1.404, allocations: 222.9 MB / 240.5 MB, free: 4.426 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.384/2.384, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 71.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6925/0.6939, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02291/0.7169, allocations: 20.11 MB / 0.9692 GB, free: 9.766 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01219/0.7291, allocations: 6.434 MB / 0.9755 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003836/0.733, allocations: 81.97 kB / 0.9756 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005939/0.739, allocations: 2.086 MB / 0.9776 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005383/0.7444, allocations: 1.113 MB / 0.9787 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004345/0.7488, allocations: 1.167 MB / 0.9799 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.008931/0.7578, allocations: 6.976 MB / 0.9867 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01005/0.7679, allocations: 6.157 MB / 0.9927 GB, free: 5.887 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004024/0.7719, allocations: 1.779 MB / 0.9944 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004992/0.7769, allocations: 2.383 MB / 0.9967 GB, free: 1.711 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001277/0.7782, allocations: 292 kB / 0.997 GB, free: 1.426 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003121/0.7814, allocations: 1.034 MB / 0.998 GB, free: 400 kB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.002497/0.7839, allocations: 1.532 MB / 0.9995 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003897/0.7878, allocations: 1.762 MB / 1.001 GB, free: 13.08 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.006303/0.7941, allocations: 5.522 MB / 1.007 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.7942, allocations: 0 / 1.007 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7942, allocations: 0 / 1.007 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0002258/0.7944, allocations: 0 / 1.007 GB, free: 7.551 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.00923/0.8036, allocations: 3.456 MB / 1.01 GB, free: 4.031 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.8037, allocations: 12.03 kB / 1.01 GB, free: 4.02 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00405/0.8078, allocations: 0.6371 MB / 1.011 GB, free: 3.379 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004242/0.812, allocations: 1.936 MB / 1.013 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.8123, allocations: 222.3 kB / 1.013 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009479/0.8132, allocations: 292.3 kB / 1.013 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.8251, allocations: 4.895 MB / 1.018 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002843/0.8255, allocations: 7.938 kB / 1.018 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/0.8271, allocations: 128 kB / 1.018 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000673/0.8278, allocations: 229.7 kB / 1.018 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009794/0.8376, allocations: 3.758 MB / 1.022 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02645/0.8641, allocations: 21.57 MB / 1.043 GB, free: 88 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.8661, allocations: 1.312 MB / 1.044 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.8677, allocations: 1.046 MB / 1.045 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.104e-05/0.8678, allocations: 9 kB / 1.045 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.8679, allocations: 47.47 kB / 1.045 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=107): time 3.697e-06/0.8679, allocations: 4 kB / 1.045 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of matching and sorting (n=138): time 0.02474/0.8927, allocations: 8.645 MB / 1.054 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.8928, allocations: 68.72 kB / 1.054 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.8945, allocations: 1.13 MB / 1.055 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.8947, allocations: 53.64 kB / 1.055 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008635/0.8956, allocations: 1.296 MB / 1.056 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004643/0.896, allocations: 485 kB / 1.057 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005117/0.8966, allocations: 291.3 kB / 1.057 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.699e-05/0.8967, allocations: 309.1 kB / 1.057 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.8979, allocations: 0.9096 MB / 1.058 GB, free: 372 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.8995, allocations: 1.322 MB / 1.059 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00301/0.9025, allocations: 2.433 MB / 1.062 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.9025, allocations: 4 kB / 1.062 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006171/0.9087, allocations: 3.464 MB / 1.065 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.9088, allocations: 8 kB / 1.065 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.9088, allocations: 16.12 kB / 1.065 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003405/0.9122, allocations: 1.18 MB / 1.066 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/0.9132, allocations: 255.6 kB / 1.067 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.9299, allocations: 12.72 MB / 1.079 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.9313, allocations: 87.97 kB / 1.079 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002366/0.9315, allocations: 64 kB / 1.079 GB, free: 10.05 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001858/0.9334, allocations: 1.118 MB / 1.08 GB, free: 8.918 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003847/0.9338, allocations: 158.1 kB / 1.08 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00562/0.9394, allocations: 3.173 MB / 1.083 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.9395, allocations: 15.98 kB / 1.084 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-05/0.9395, allocations: 12 kB / 1.084 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.9395, allocations: 7.922 kB / 1.084 GB, free: 5.527 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.9502, allocations: 6.241 MB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.9503, allocations: 4 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.9509, allocations: 143.8 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003093/0.954, allocations: 1.086 MB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.9541, allocations: 24 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/0.9702, allocations: 12.41 MB / 1.103 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.9703, allocations: 7.938 kB / 1.103 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.9759, allocations: 3.146 MB / 1.106 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009635/0.9769, allocations: 423.1 kB / 1.106 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004333/0.9773, allocations: 39.86 kB / 1.106 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009941/0.9783, allocations: 87.84 kB / 1.107 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004049/0.9787, allocations: 124.7 kB / 1.107 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.9789, allocations: 36 kB / 1.107 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001263/0.9801, allocations: 0.7671 MB / 1.107 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9802, allocations: 4 kB / 1.107 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002242/0.9824, allocations: 0.6602 MB / 1.108 GB, free: 11.69 MB / 0.8731 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002877/0.9827, allocations: 139.1 kB / 1.108 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.005142/0.9879, allocations: 3.13 MB / 1.111 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.9879, allocations: 0 / 1.111 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.991, allocations: 1.96 MB / 1.113 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.9935, allocations: 469 kB / 1.114 GB, free: 5.93 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/1.005, allocations: 7.169 MB / 1.121 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/1.008, allocations: 2.387 MB / 1.123 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004488/1.008, allocations: 103.4 kB / 1.123 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of SimCode: time 1.102e-06/1.008, allocations: 0 / 1.123 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of Templates: time 0.08609/1.094, allocations: 79.42 MB / 1.201 GB, free: 12.8 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches