Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 180.8 kB / 487.4 MB, free: 5.062 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 221.5 MB / 0.7824 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008285/0.0008284, allocations: 95.95 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.248e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3052, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9279/1.233, allocations: 196 MB / 1.397 GB, free: 11.76 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/1.233, allocations: 98.11 kB / 1.397 GB, free: 11.74 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.8062/2.04, allocations: 323.5 MB / 1.713 GB, free: 4.578 MB / 1.12 GB Notification: Performance of FrontEnd: time 2.806e-06/2.04, allocations: 0 / 1.713 GB, free: 4.578 MB / 1.12 GB Notification: Performance of Transformations before backend: time 0.0007157/2.04, allocations: 151.8 kB / 1.714 GB, free: 4.43 MB / 1.12 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01908/2.059, allocations: 4.654 MB / 1.718 GB, free: 15.71 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/2.06, allocations: 8.031 kB / 1.718 GB, free: 15.7 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/2.072, allocations: 1.487 MB / 1.72 GB, free: 14.21 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/2.087, allocations: 4.223 MB / 1.724 GB, free: 9.906 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003743/2.087, allocations: 167.9 kB / 1.724 GB, free: 9.742 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002772/2.09, allocations: 299.9 kB / 1.724 GB, free: 9.449 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01509/2.105, allocations: 5.57 MB / 1.73 GB, free: 3.875 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0277/2.133, allocations: 7.534 MB / 1.737 GB, free: 11.89 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003264/2.134, allocations: 35.7 kB / 1.737 GB, free: 11.85 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002223/2.136, allocations: 12 kB / 1.737 GB, free: 11.84 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004699/2.136, allocations: 330 kB / 1.737 GB, free: 11.52 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8397/2.976, allocations: 38.91 MB / 1.775 GB, free: 226 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004576/2.981, allocations: 2.71 MB / 1.778 GB, free: 226 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003935/2.985, allocations: 2.478 MB / 1.78 GB, free: 226 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002482/2.985, allocations: 27.72 kB / 1.78 GB, free: 226 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.412e-05/2.985, allocations: 70.81 kB / 1.78 GB, free: 225.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 5.57e-06/2.985, allocations: 0 / 1.78 GB, free: 225.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=424): time 0.07917/3.064, allocations: 27.32 MB / 1.807 GB, free: 223.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.572e-05/3.064, allocations: 95.39 kB / 1.807 GB, free: 223.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00472/3.069, allocations: 1.631 MB / 1.809 GB, free: 223.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001554/3.071, allocations: 29.31 kB / 1.809 GB, free: 223.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.002099/3.073, allocations: 2.36 MB / 1.811 GB, free: 222.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002625/3.075, allocations: 1.38 MB / 1.812 GB, free: 221.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/3.076, allocations: 2.312 kB / 1.812 GB, free: 221.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000284/3.076, allocations: 482.6 kB / 1.813 GB, free: 221.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/3.079, allocations: 2.644 MB / 1.816 GB, free: 221.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003723/3.083, allocations: 3.584 MB / 1.819 GB, free: 220.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003849/3.087, allocations: 3.234 MB / 1.822 GB, free: 220.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/3.087, allocations: 7.469 kB / 1.822 GB, free: 220.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.0231/3.11, allocations: 11.15 MB / 1.833 GB, free: 219.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.8e-05/3.11, allocations: 22.42 kB / 1.833 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.976e-05/3.11, allocations: 25.5 kB / 1.833 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01703/3.127, allocations: 4.898 MB / 1.838 GB, free: 219.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002519/3.13, allocations: 0.5037 MB / 1.838 GB, free: 219.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06916/3.199, allocations: 62.27 MB / 1.899 GB, free: 183.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006152/3.205, allocations: 98.09 kB / 1.899 GB, free: 183.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/3.207, allocations: 162.5 kB / 1.899 GB, free: 183.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 251 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002338/3.209, allocations: 191.3 kB / 1.9 GB, free: 183.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00182/3.211, allocations: 372.2 kB / 1.9 GB, free: 183.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02616/3.237, allocations: 11 MB / 1.911 GB, free: 179.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.529e-05/3.237, allocations: 45.14 kB / 1.911 GB, free: 179.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000193/3.238, allocations: 55.64 kB / 1.911 GB, free: 179.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001406/3.238, allocations: 22.45 kB / 1.911 GB, free: 179.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03959/3.277, allocations: 16.53 MB / 1.927 GB, free: 173 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.793e-05/3.277, allocations: 7.344 kB / 1.927 GB, free: 173 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/3.279, allocations: 291.8 kB / 1.927 GB, free: 173 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0161/3.295, allocations: 4.422 MB / 1.932 GB, free: 171.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002067/3.297, allocations: 11.12 kB / 1.932 GB, free: 171.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06277/3.36, allocations: 60.02 MB / 1.99 GB, free: 128.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.727e-05/3.36, allocations: 13.69 kB / 1.99 GB, free: 128.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03017/3.391, allocations: 14.7 MB / 2.005 GB, free: 121.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003226/3.394, allocations: 0.9549 MB / 2.006 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001712/3.396, allocations: 18.27 kB / 2.006 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003713/3.399, allocations: 111.2 kB / 2.006 GB, free: 121.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002071/3.401, allocations: 398.3 kB / 2.006 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007054/3.402, allocations: 104.3 kB / 2.006 GB, free: 121.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002583/3.405, allocations: 1.193 MB / 2.007 GB, free: 120.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/3.405, allocations: 0 / 2.007 GB, free: 120.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.009992/3.415, allocations: 1.552 MB / 2.009 GB, free: 120.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 121 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 15,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(2,100.0%) 8,(3,100.0%) 15,(4,100.0%) 16,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001375/3.416, allocations: 155.9 kB / 2.009 GB, free: 120.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0236/3.44, allocations: 10.95 MB / 2.02 GB, free: 114.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/3.44, allocations: 0 / 2.02 GB, free: 114.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01554/3.455, allocations: 7.596 MB / 2.027 GB, free: 109.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006699/3.462, allocations: 0.8794 MB / 2.028 GB, free: 108.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02502/3.487, allocations: 9.754 MB / 2.037 GB, free: 100.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007914/3.495, allocations: 4.183 MB / 2.042 GB, free: 96.93 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003475/3.499, allocations: 0.654 MB / 2.042 GB, free: 96.48 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/3.499, allocations: 167.4 kB / 2.042 GB, free: 96.31 MB / 1.151 GB Notification: Performance of SimCode: time 1.372e-06/3.499, allocations: 0 / 2.042 GB, free: 96.31 MB / 1.151 GB Notification: Performance of Templates: time 0.1506/3.65, allocations: 90.5 MB / 2.131 GB, free: 36.66 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches