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.244/2.244, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.001043/0.001043, allocations: 184.8 kB / 492.3 MB, free: 0.5898 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.599/1.599, allocations: 221.3 MB / 0.7871 GB, free: 12.94 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.0009056/0.0009056, allocations: 87.94 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.306e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2585, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8688/1.127, allocations: 204.3 MB / 1.412 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/1.128, allocations: 95.09 kB / 1.412 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.1902/1.318, allocations: 77.01 MB / 1.487 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.422e-06/1.318, allocations: 0 / 1.487 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001454/1.318, allocations: 39.98 kB / 1.487 GB, free: 10.18 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.005072/1.323, allocations: 1.683 MB / 1.489 GB, free: 8.551 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/1.323, allocations: 8.031 kB / 1.489 GB, free: 8.543 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003765/1.327, allocations: 0.6562 MB / 1.49 GB, free: 7.891 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/1.33, allocations: 1.253 MB / 1.491 GB, free: 6.875 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/1.33, allocations: 120.6 kB / 1.491 GB, free: 6.805 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005755/1.331, allocations: 155.3 kB / 1.491 GB, free: 6.703 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005296/1.336, allocations: 2.611 MB / 1.494 GB, free: 4.871 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.608e-05/1.336, allocations: 0 / 1.494 GB, free: 4.871 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002609/1.336, allocations: 71.17 kB / 1.494 GB, free: 4.852 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/1.337, allocations: 91.16 kB / 1.494 GB, free: 4.766 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003661/1.34, allocations: 2.154 MB / 1.496 GB, free: 3.352 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01453/1.355, allocations: 10.9 MB / 1.506 GB, free: 8.648 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/1.356, allocations: 0.7457 MB / 1.507 GB, free: 7.895 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007887/1.357, allocations: 0.5214 MB / 1.508 GB, free: 7.371 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/1.357, allocations: 89.47 kB / 1.508 GB, free: 7.266 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/1.357, allocations: 46.86 kB / 1.508 GB, free: 7.211 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 4.618e-06/1.357, allocations: 4 kB / 1.508 GB, free: 7.207 MB / 0.9167 GB Notification: Performance of matching and sorting (n=72): time 0.02379/1.381, allocations: 7.155 MB / 1.515 GB, free: 32 kB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.498e-05/1.381, allocations: 85.89 kB / 1.515 GB, free: 15.93 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/1.383, allocations: 0.8588 MB / 1.516 GB, free: 15.06 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001456/1.383, allocations: 33.7 kB / 1.516 GB, free: 15.02 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/1.384, allocations: 0.7736 MB / 1.517 GB, free: 14.23 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/1.384, allocations: 260.4 kB / 1.517 GB, free: 13.98 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.847e-05/1.384, allocations: 20 kB / 1.517 GB, free: 13.96 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0002941/1.384, allocations: 398.8 kB / 1.517 GB, free: 13.56 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/1.385, allocations: 0.76 MB / 1.518 GB, free: 12.8 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/1.387, allocations: 1.125 MB / 1.519 GB, free: 11.52 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/1.389, allocations: 0.9584 MB / 1.52 GB, free: 10.56 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/1.389, allocations: 4 kB / 1.52 GB, free: 10.55 MB / 0.9323 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.007994/1.397, allocations: 3.396 MB / 1.523 GB, free: 7.145 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001914/1.398, allocations: 4.273 MB / 1.527 GB, free: 2.531 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/1.399, allocations: 11.95 kB / 1.527 GB, free: 2.52 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006141/1.405, allocations: 1.752 MB / 1.529 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/1.406, allocations: 223.6 kB / 1.529 GB, free: 0.543 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/1.417, allocations: 7.279 MB / 1.537 GB, free: 9.102 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/1.418, allocations: 191.6 kB / 1.537 GB, free: 8.914 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/1.419, allocations: 47.98 kB / 1.537 GB, free: 8.867 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/1.419, allocations: 4 kB / 1.537 GB, free: 8.863 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006121/1.425, allocations: 2.739 MB / 1.539 GB, free: 6.117 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/1.425, allocations: 12.38 kB / 1.539 GB, free: 6.105 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003509/1.428, allocations: 1.036 MB / 1.54 GB, free: 5.066 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/1.43, allocations: 291.5 kB / 1.541 GB, free: 4.781 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009324/1.439, allocations: 6.07 MB / 1.547 GB, free: 14.58 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/1.44, allocations: 163.7 kB / 1.547 GB, free: 14.42 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/1.441, allocations: 51.98 kB / 1.547 GB, free: 14.37 MB / 0.9636 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.0004199/1.441, allocations: 160.7 kB / 1.547 GB, free: 14.21 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002872/1.441, allocations: 86.97 kB / 1.547 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007129/1.449, allocations: 2.999 MB / 1.55 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/1.449, allocations: 8 kB / 1.55 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/1.449, allocations: 8 kB / 1.55 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/1.449, allocations: 3.984 kB / 1.55 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/1.46, allocations: 5.574 MB / 1.555 GB, free: 5.391 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/1.46, allocations: 8.25 kB / 1.555 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/1.461, allocations: 111.8 kB / 1.556 GB, free: 5.273 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00558/1.467, allocations: 1.638 MB / 1.557 GB, free: 3.629 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/1.467, allocations: 12 kB / 1.557 GB, free: 3.617 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/1.48, allocations: 9.464 MB / 1.566 GB, free: 9.883 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/1.481, allocations: 8.031 kB / 1.566 GB, free: 9.875 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007012/1.488, allocations: 2.951 MB / 1.569 GB, free: 6.828 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008792/1.488, allocations: 343.8 kB / 1.57 GB, free: 6.473 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/1.489, allocations: 19.98 kB / 1.57 GB, free: 6.453 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/1.49, allocations: 139.8 kB / 1.57 GB, free: 6.316 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/1.49, allocations: 68.41 kB / 1.57 GB, free: 6.25 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.6e-05/1.49, allocations: 23.95 kB / 1.57 GB, free: 6.227 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001135/1.491, allocations: 0.6631 MB / 1.571 GB, free: 5.566 MB / 0.9792 GB Notification: Performance of sort global known variables: time 2.6e-07/1.491, allocations: 0 / 1.571 GB, free: 5.566 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.00277/1.494, allocations: 0.7265 MB / 1.571 GB, free: 4.84 MB / 0.9792 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.0003665/1.495, allocations: 176.8 kB / 1.571 GB, free: 4.66 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.006793/1.501, allocations: 3.611 MB / 1.575 GB, free: 1.023 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/1.501, allocations: 0 / 1.575 GB, free: 1.023 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.002659/1.504, allocations: 1.365 MB / 1.576 GB, free: 15.63 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/1.505, allocations: 246.5 kB / 1.577 GB, free: 15.39 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00556/1.511, allocations: 2.862 MB / 1.579 GB, free: 12.48 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001709/1.513, allocations: 1.755 MB / 1.581 GB, free: 10.7 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.001806/1.514, allocations: 0.6552 MB / 1.582 GB, free: 10.04 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/1.515, allocations: 47.44 kB / 1.582 GB, free: 9.988 MB / 0.9948 GB Notification: Performance of SimCode: time 7.82e-07/1.515, allocations: 0 / 1.582 GB, free: 9.988 MB / 0.9948 GB Notification: Performance of Templates: time 0.04455/1.559, allocations: 28.82 MB / 1.61 GB, free: 13.31 MB / 1.026 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