Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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,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.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,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.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.001481/0.001481, allocations: 179 kB / 492.3 MB, free: 0.582 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.553/1.553, 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.0009577/0.0009574, allocations: 94.73 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.939e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2921, allocations: 142.3 MB / 1.212 GB, free: 38.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9407/1.233, allocations: 203.4 MB / 1.411 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/1.233, allocations: 94.62 kB / 1.411 GB, free: 12.78 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.173/1.406, allocations: 73.67 MB / 1.483 GB, free: 14.06 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.252e-06/1.406, allocations: 3.938 kB / 1.483 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 9.549e-05/1.406, allocations: 35.98 kB / 1.483 GB, free: 14.02 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.00309/1.409, allocations: 1.567 MB / 1.485 GB, free: 12.5 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/1.409, allocations: 8.031 kB / 1.485 GB, free: 12.49 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002618/1.412, allocations: 499.7 kB / 1.485 GB, free: 12 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/1.414, allocations: 1.157 MB / 1.486 GB, free: 11.07 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.779e-05/1.414, allocations: 121.8 kB / 1.486 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002665/1.415, allocations: 147.9 kB / 1.487 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003937/1.419, allocations: 2.43 MB / 1.489 GB, free: 9.188 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/1.419, allocations: 0 / 1.489 GB, free: 9.188 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/1.419, allocations: 66.61 kB / 1.489 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/1.419, allocations: 89.69 kB / 1.489 GB, free: 9.086 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003025/1.422, allocations: 1.974 MB / 1.491 GB, free: 7.793 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01217/1.434, allocations: 10.53 MB / 1.501 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009093/1.435, allocations: 0.557 MB / 1.502 GB, free: 13.5 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/1.436, allocations: 377.2 kB / 1.502 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/1.436, allocations: 96.95 kB / 1.502 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/1.436, allocations: 34.56 kB / 1.502 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=36): time 5.009e-06/1.436, allocations: 0 / 1.502 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of matching and sorting (n=52): time 0.01495/1.451, allocations: 4.785 MB / 1.507 GB, free: 8.164 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/1.451, allocations: 85.55 kB / 1.507 GB, free: 8.062 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/1.452, allocations: 0.8001 MB / 1.508 GB, free: 7.258 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.353e-05/1.452, allocations: 37.7 kB / 1.508 GB, free: 7.215 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000582/1.453, allocations: 0.7616 MB / 1.509 GB, free: 6.441 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/1.453, allocations: 185.4 kB / 1.509 GB, free: 6.258 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/1.453, allocations: 20 kB / 1.509 GB, free: 6.238 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002001/1.453, allocations: 394.7 kB / 1.509 GB, free: 5.844 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008712/1.454, allocations: 0.5915 MB / 1.51 GB, free: 5.25 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/1.456, allocations: 0.9605 MB / 1.511 GB, free: 4.121 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/1.457, allocations: 0.7682 MB / 1.511 GB, free: 3.348 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/1.457, allocations: 7.938 kB / 1.511 GB, free: 3.34 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.006627/1.463, allocations: 2.769 MB / 1.514 GB, free: 0.5547 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.002018/1.465, allocations: 4.536 MB / 1.519 GB, free: 11.66 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/1.465, allocations: 12 kB / 1.519 GB, free: 11.65 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005199/1.471, allocations: 1.423 MB / 1.52 GB, free: 10.21 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009427/1.471, allocations: 219.6 kB / 1.52 GB, free: 10 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00801/1.48, allocations: 6.82 MB / 1.527 GB, free: 2.855 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/1.481, allocations: 167.7 kB / 1.527 GB, free: 2.691 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.743e-05/1.481, allocations: 39.95 kB / 1.527 GB, free: 2.652 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/1.481, allocations: 4 kB / 1.527 GB, free: 2.648 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00511/1.486, allocations: 2.255 MB / 1.529 GB, free: 400 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/1.486, allocations: 8 kB / 1.529 GB, free: 392 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003182/1.489, allocations: 0.8642 MB / 1.53 GB, free: 15.51 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009679/1.49, allocations: 255.5 kB / 1.53 GB, free: 15.26 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007509/1.498, allocations: 5.379 MB / 1.536 GB, free: 9.605 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/1.499, allocations: 135.7 kB / 1.536 GB, free: 9.473 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/1.5, allocations: 39.98 kB / 1.536 GB, free: 9.434 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003538/1.5, allocations: 168.7 kB / 1.536 GB, free: 9.262 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/1.5, allocations: 75.06 kB / 1.536 GB, free: 9.188 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006065/1.506, allocations: 2.317 MB / 1.538 GB, free: 6.844 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.506, allocations: 11.94 kB / 1.538 GB, free: 6.832 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.506, allocations: 0 / 1.538 GB, free: 6.832 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/1.506, allocations: 0 / 1.538 GB, free: 6.832 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009008/1.515, allocations: 4.254 MB / 1.542 GB, free: 2.457 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/1.515, allocations: 0 / 1.542 GB, free: 2.457 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004348/1.516, allocations: 104.1 kB / 1.543 GB, free: 2.355 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004939/1.521, allocations: 1.365 MB / 1.544 GB, free: 0.9766 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.02e-05/1.521, allocations: 16 kB / 1.544 GB, free: 0.9609 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/1.533, allocations: 9.481 MB / 1.553 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.533, allocations: 4.031 kB / 1.553 GB, free: 6.938 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005823/1.539, allocations: 2.373 MB / 1.555 GB, free: 4.461 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006754/1.539, allocations: 284.1 kB / 1.556 GB, free: 4.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/1.539, allocations: 19.95 kB / 1.556 GB, free: 4.145 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007344/1.54, allocations: 119.8 kB / 1.556 GB, free: 4.027 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/1.54, allocations: 47.88 kB / 1.556 GB, free: 3.98 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/1.54, allocations: 16 kB / 1.556 GB, free: 3.965 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0008912/1.541, allocations: 0.6357 MB / 1.557 GB, free: 3.336 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.31e-07/1.541, allocations: 0 / 1.557 GB, free: 3.336 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002015/1.543, allocations: 0.6171 MB / 1.557 GB, free: 2.719 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 (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003488/1.544, allocations: 180.7 kB / 1.557 GB, free: 2.531 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.005168/1.549, allocations: 2.955 MB / 1.56 GB, free: 15.53 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.549, allocations: 0 / 1.56 GB, free: 15.53 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001848/1.551, allocations: 1.229 MB / 1.561 GB, free: 14.25 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/1.552, allocations: 221 kB / 1.562 GB, free: 14.03 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/1.556, allocations: 2.4 MB / 1.564 GB, free: 11.58 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/1.558, allocations: 1.654 MB / 1.566 GB, free: 9.895 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.001548/1.559, allocations: 0.5959 MB / 1.566 GB, free: 9.293 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/1.559, allocations: 47.44 kB / 1.566 GB, free: 9.246 MB / 0.9792 GB Notification: Performance of SimCode: time 1.082e-06/1.559, allocations: 0 / 1.566 GB, free: 9.246 MB / 0.9792 GB Notification: Performance of Templates: time 0.03556/1.595, allocations: 22.98 MB / 1.589 GB, free: 2.363 MB / 0.9948 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches