Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.344/2.344, allocations: 390.5 MB / 398 MB, free: 10.93 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.001195/0.001195, allocations: 178.4 kB / 491.2 MB, free: 1.543 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.664/1.664, allocations: 221.5 MB / 0.7868 GB, free: 13.24 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.000989/0.000989, allocations: 103.8 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2e-05/2.027e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3486, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.468, allocations: 204.4 MB / 1.412 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/1.468, allocations: 94.5 kB / 1.412 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.1894/1.658, allocations: 76.64 MB / 1.487 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.853e-06/1.658, allocations: 0 / 1.487 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001024/1.658, allocations: 36 kB / 1.487 GB, free: 11.43 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.00391/1.662, allocations: 1.68 MB / 1.489 GB, free: 9.793 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.662, allocations: 12.03 kB / 1.489 GB, free: 9.781 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003118/1.665, allocations: 0.6606 MB / 1.489 GB, free: 9.125 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/1.667, allocations: 1.243 MB / 1.49 GB, free: 8.125 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/1.667, allocations: 52 kB / 1.49 GB, free: 8.074 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002553/1.668, allocations: 103.4 kB / 1.491 GB, free: 7.977 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003024/1.671, allocations: 1.935 MB / 1.492 GB, free: 6.75 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003613/1.674, allocations: 2.366 MB / 1.495 GB, free: 5.023 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.023e-05/1.674, allocations: 7.922 kB / 1.495 GB, free: 5.016 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/1.674, allocations: 4 kB / 1.495 GB, free: 5.012 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.736e-05/1.675, allocations: 90.03 kB / 1.495 GB, free: 4.93 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01384/1.688, allocations: 10.52 MB / 1.505 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/1.69, allocations: 0.7266 MB / 1.506 GB, free: 9.727 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/1.69, allocations: 0.5121 MB / 1.506 GB, free: 9.215 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/1.69, allocations: 101.4 kB / 1.506 GB, free: 9.098 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/1.69, allocations: 42.94 kB / 1.507 GB, free: 9.047 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 2.956e-06/1.69, allocations: 0 / 1.507 GB, free: 9.047 MB / 0.9167 GB Notification: Performance of matching and sorting (n=72): time 0.01062/1.701, allocations: 4.358 MB / 1.511 GB, free: 4.676 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/1.701, allocations: 81.89 kB / 1.511 GB, free: 4.578 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/1.702, allocations: 0.7571 MB / 1.512 GB, free: 3.816 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/1.703, allocations: 25.7 kB / 1.512 GB, free: 3.785 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006019/1.703, allocations: 0.7774 MB / 1.512 GB, free: 2.992 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002581/1.703, allocations: 252.3 kB / 1.513 GB, free: 2.742 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-05/1.704, allocations: 0 / 1.513 GB, free: 2.742 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002132/1.704, allocations: 394.8 kB / 1.513 GB, free: 2.348 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/1.705, allocations: 0.7404 MB / 1.514 GB, free: 1.609 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/1.706, allocations: 1.091 MB / 1.515 GB, free: 368 kB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/1.708, allocations: 1.078 MB / 1.516 GB, free: 15.28 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/1.708, allocations: 4 kB / 1.516 GB, free: 15.28 MB / 0.9323 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.00737/1.715, allocations: 3.248 MB / 1.519 GB, free: 12.01 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001739/1.717, allocations: 4.269 MB / 1.523 GB, free: 7.406 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/1.717, allocations: 12 kB / 1.523 GB, free: 7.395 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005074/1.722, allocations: 1.406 MB / 1.525 GB, free: 5.984 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009752/1.723, allocations: 227.6 kB / 1.525 GB, free: 5.762 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/1.734, allocations: 7.014 MB / 1.532 GB, free: 14.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/1.735, allocations: 171.6 kB / 1.532 GB, free: 14.44 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/1.735, allocations: 48 kB / 1.532 GB, free: 14.39 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/1.735, allocations: 7.953 kB / 1.532 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003044/1.739, allocations: 1.67 MB / 1.533 GB, free: 12.71 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/1.739, allocations: 12 kB / 1.533 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/1.739, allocations: 20 kB / 1.533 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/1.74, allocations: 343.9 kB / 1.534 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.62e-05/1.74, allocations: 19.94 kB / 1.534 GB, free: 12.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009774/1.741, allocations: 124 kB / 1.534 GB, free: 12.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/1.741, allocations: 44 kB / 1.534 GB, free: 12.16 MB / 0.948 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003117/1.741, allocations: 136.7 kB / 1.534 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/1.742, allocations: 90.91 kB / 1.534 GB, free: 11.93 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007246/1.749, allocations: 2.995 MB / 1.537 GB, free: 8.91 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/1.749, allocations: 12 kB / 1.537 GB, free: 8.898 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/1.749, allocations: 4 kB / 1.537 GB, free: 8.895 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/1.749, allocations: 3.984 kB / 1.537 GB, free: 8.891 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/1.761, allocations: 5.285 MB / 1.542 GB, free: 3.508 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/1.761, allocations: 4 kB / 1.542 GB, free: 3.504 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/1.761, allocations: 107.8 kB / 1.542 GB, free: 3.398 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005573/1.767, allocations: 1.611 MB / 1.544 GB, free: 1.781 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/1.767, allocations: 8 kB / 1.544 GB, free: 1.773 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/1.781, allocations: 9.164 MB / 1.553 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/1.781, allocations: 3.953 kB / 1.553 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006824/1.787, allocations: 2.966 MB / 1.556 GB, free: 5.305 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007085/1.788, allocations: 336 kB / 1.556 GB, free: 4.957 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002858/1.788, allocations: 8.172 kB / 1.556 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/1.79, allocations: 171.7 kB / 1.556 GB, free: 4.781 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/1.79, allocations: 64.41 kB / 1.556 GB, free: 4.719 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/1.79, allocations: 20 kB / 1.556 GB, free: 4.699 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0009639/1.791, allocations: 0.5888 MB / 1.557 GB, free: 4.113 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.61e-07/1.791, allocations: 0 / 1.557 GB, free: 4.113 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002688/1.794, allocations: 0.6328 MB / 1.558 GB, free: 3.48 MB / 0.9636 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003745/1.794, allocations: 180.4 kB / 1.558 GB, free: 3.297 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.00535/1.799, allocations: 2.909 MB / 1.561 GB, free: 388 kB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.799, allocations: 0 / 1.561 GB, free: 388 kB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002489/1.802, allocations: 1.33 MB / 1.562 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/1.803, allocations: 208.7 kB / 1.562 GB, free: 14.83 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005815/1.809, allocations: 2.811 MB / 1.565 GB, free: 11.96 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/1.811, allocations: 1.747 MB / 1.567 GB, free: 10.18 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.001853/1.813, allocations: 0.6392 MB / 1.567 GB, free: 9.539 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/1.813, allocations: 51.44 kB / 1.567 GB, free: 9.492 MB / 0.9792 GB Notification: Performance of SimCode: time 5.71e-07/1.813, allocations: 0 / 1.567 GB, free: 9.492 MB / 0.9792 GB Notification: Performance of Templates: time 0.04054/1.854, allocations: 24.32 MB / 1.591 GB, free: 1.32 MB / 0.9948 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches