Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.305/2.305, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001361/0.001361, allocations: 185.1 kB / 498.1 MB, free: 5.746 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.725/1.725, allocations: 223.2 MB / 0.7948 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009652/0.0009652, allocations: 98.23 kB / 0.9346 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003972, allocations: 10.16 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.325, allocations: 142.4 MB / 1.223 GB, free: 89.57 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.374, allocations: 204.3 MB / 1.422 GB, free: 76.54 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003563/1.374, allocations: 101.4 kB / 1.423 GB, free: 76.54 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.233/1.607, allocations: 77.3 MB / 1.498 GB, free: 56.82 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.366e-06/1.607, allocations: 0 / 1.498 GB, free: 56.82 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0002253/1.607, allocations: 38.56 kB / 1.498 GB, free: 56.81 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.007823/1.615, allocations: 1.795 MB / 1.5 GB, free: 55.69 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/1.615, allocations: 7.781 kB / 1.5 GB, free: 55.69 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005148/1.62, allocations: 0.664 MB / 1.5 GB, free: 55.39 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004481/1.625, allocations: 1.25 MB / 1.502 GB, free: 54.87 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/1.625, allocations: 118 kB / 1.502 GB, free: 54.86 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006474/1.626, allocations: 163 kB / 1.502 GB, free: 54.86 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006179/1.632, allocations: 2.648 MB / 1.505 GB, free: 54.13 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.249e-05/1.632, allocations: 7.906 kB / 1.505 GB, free: 54.12 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002666/1.632, allocations: 65.56 kB / 1.505 GB, free: 54.12 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/1.632, allocations: 85.19 kB / 1.505 GB, free: 54.11 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00478/1.637, allocations: 2.217 MB / 1.507 GB, free: 53.76 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/1.653, allocations: 10.91 MB / 1.518 GB, free: 46.44 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/1.654, allocations: 0.7545 MB / 1.518 GB, free: 46.28 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001324/1.654, allocations: 97.16 kB / 1.518 GB, free: 46.17 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/1.654, allocations: 41.55 kB / 1.518 GB, free: 46.13 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=46): time 3.687e-06/1.654, allocations: 3.938 kB / 1.518 GB, free: 46.12 MB / 0.9011 GB Notification: Performance of matching and sorting (n=70): time 0.02774/1.682, allocations: 8.391 MB / 1.527 GB, free: 42.94 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/1.682, allocations: 85.48 kB / 1.527 GB, free: 42.84 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/1.684, allocations: 0.8546 MB / 1.528 GB, free: 42.57 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001607/1.684, allocations: 37.42 kB / 1.528 GB, free: 42.54 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/1.684, allocations: 0.773 MB / 1.528 GB, free: 42 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/1.684, allocations: 254.4 kB / 1.529 GB, free: 41.82 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-05/1.684, allocations: 22.84 kB / 1.529 GB, free: 41.82 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001244/1.685, allocations: 400.9 kB / 1.529 GB, free: 41.48 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009617/1.686, allocations: 0.7972 MB / 1.53 GB, free: 41.33 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/1.687, allocations: 1.16 MB / 1.531 GB, free: 40.73 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/1.688, allocations: 0.9972 MB / 1.532 GB, free: 40.55 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/1.688, allocations: 3.906 kB / 1.532 GB, free: 40.55 MB / 0.9011 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.0075/1.695, allocations: 3.507 MB / 1.535 GB, free: 39.52 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009343/1.696, allocations: 4.271 MB / 1.539 GB, free: 35.02 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/1.696, allocations: 13.47 kB / 1.539 GB, free: 35.01 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006296/1.703, allocations: 1.865 MB / 1.541 GB, free: 34.36 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.704, allocations: 234.1 kB / 1.541 GB, free: 34.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008167/1.712, allocations: 7.026 MB / 1.548 GB, free: 31.35 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/1.713, allocations: 183.3 kB / 1.549 GB, free: 31.28 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/1.714, allocations: 46.61 kB / 1.549 GB, free: 31.27 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/1.714, allocations: 3.906 kB / 1.549 GB, free: 31.27 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005871/1.719, allocations: 2.868 MB / 1.551 GB, free: 30.51 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/1.72, allocations: 9.594 kB / 1.551 GB, free: 30.51 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/1.724, allocations: 1.156 MB / 1.553 GB, free: 30.1 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/1.725, allocations: 291.6 kB / 1.553 GB, free: 30.02 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/1.732, allocations: 5.856 MB / 1.559 GB, free: 27.71 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/1.733, allocations: 154.6 kB / 1.559 GB, free: 27.66 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/1.734, allocations: 46.53 kB / 1.559 GB, free: 27.66 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * Single equations (assignments): 95 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.001805/1.735, allocations: 0.8998 MB / 1.56 GB, free: 27.04 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/1.736, allocations: 86.97 kB / 1.56 GB, free: 26.96 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006913/1.743, allocations: 3.116 MB / 1.563 GB, free: 24.59 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/1.743, allocations: 4 kB / 1.563 GB, free: 24.58 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/1.743, allocations: 11.95 kB / 1.563 GB, free: 24.57 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/1.743, allocations: 3.984 kB / 1.563 GB, free: 24.57 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/1.753, allocations: 5.178 MB / 1.568 GB, free: 20.63 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/1.753, allocations: 4 kB / 1.568 GB, free: 20.63 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/1.754, allocations: 107 kB / 1.568 GB, free: 20.53 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006021/1.76, allocations: 1.774 MB / 1.57 GB, free: 18.96 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/1.76, allocations: 15 kB / 1.57 GB, free: 18.95 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01167/1.771, allocations: 10.01 MB / 1.579 GB, free: 9.172 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.771, allocations: 4 kB / 1.579 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006416/1.778, allocations: 3.106 MB / 1.582 GB, free: 5.961 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000852/1.779, allocations: 336.2 kB / 1.583 GB, free: 5.613 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/1.779, allocations: 12 kB / 1.583 GB, free: 5.602 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000804/1.78, allocations: 147.8 kB / 1.583 GB, free: 5.457 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/1.78, allocations: 72.36 kB / 1.583 GB, free: 5.387 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.722e-05/1.78, allocations: 20 kB / 1.583 GB, free: 5.367 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0009156/1.781, allocations: 0.6746 MB / 1.584 GB, free: 4.699 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/1.781, allocations: 0 / 1.584 GB, free: 4.699 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.002328/1.783, allocations: 0.7187 MB / 1.584 GB, free: 3.98 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003477/1.784, allocations: 191.8 kB / 1.585 GB, free: 3.785 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.005644/1.789, allocations: 3.606 MB / 1.588 GB, free: 160 kB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 7.934e-06/1.789, allocations: 0 / 1.588 GB, free: 160 kB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00241/1.792, allocations: 1.344 MB / 1.589 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/1.793, allocations: 247.2 kB / 1.59 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006806/1.8, allocations: 4.067 MB / 1.594 GB, free: 10.43 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/1.802, allocations: 1.753 MB / 1.595 GB, free: 8.645 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001601/1.803, allocations: 0.5225 MB / 1.596 GB, free: 8.117 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/1.804, allocations: 51.44 kB / 1.596 GB, free: 8.066 MB / 0.9167 GB Notification: Performance of SimCode: time 1.413e-06/1.804, allocations: 4 kB / 1.596 GB, free: 8.062 MB / 0.9167 GB Notification: Performance of Templates: time 0.04616/1.85, allocations: 28 MB / 1.623 GB, free: 12.22 MB / 0.948 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches