Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.724/2.724, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 15.98 kB / 0.8708 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9066/0.907, allocations: 153.6 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.006865/0.9139, allocations: 5.773 MB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004664/0.9186, allocations: 2.932 MB / 1.029 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006086/0.9193, allocations: 23.81 kB / 1.029 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003633/0.9196, allocations: 115.2 kB / 1.029 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.9207, allocations: 422.7 kB / 1.03 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.9218, allocations: 338 kB / 1.03 GB, free: 7.488 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001059/0.9228, allocations: 0.7466 MB / 1.031 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.9245, allocations: 0.9325 MB / 1.032 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005514/0.9251, allocations: 346.8 kB / 1.032 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005805/0.9257, allocations: 406.5 kB / 1.033 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.9257, allocations: 36 kB / 1.033 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004332/0.9262, allocations: 151.7 kB / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.9265, allocations: 247.3 kB / 1.033 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.9267, allocations: 177.3 kB / 1.033 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.9279, allocations: 0.859 MB / 1.034 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.9279, allocations: 0 / 1.034 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.336e-06/0.9279, allocations: 0 / 1.034 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.9279, allocations: 4 kB / 1.034 GB, free: 3.574 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002076/0.93, allocations: 1.005 MB / 1.035 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.9301, allocations: 15.98 kB / 1.035 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.9314, allocations: 222.7 kB / 1.035 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.9324, allocations: 0.5404 MB / 1.036 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.9324, allocations: 49.27 kB / 1.036 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.9326, allocations: 63.98 kB / 1.036 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.9342, allocations: 1.065 MB / 1.037 GB, free: 424 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.9342, allocations: 11.94 kB / 1.037 GB, free: 412 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.9343, allocations: 31.98 kB / 1.037 GB, free: 380 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001517/0.9344, allocations: 85.25 kB / 1.037 GB, free: 296 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.9356, allocations: 0.7426 MB / 1.038 GB, free: 15.55 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006108/0.9417, allocations: 5.893 MB / 1.043 GB, free: 9.223 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.9428, allocations: 0.5506 MB / 1.044 GB, free: 8.664 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.9428, allocations: 12.38 kB / 1.044 GB, free: 8.652 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.9429, allocations: 42.94 kB / 1.044 GB, free: 8.602 MB / 0.795 GB Notification: Performance of pre-optimization done (n=47): time 3.436e-06/0.9429, allocations: 0 / 1.044 GB, free: 8.602 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.004105/0.947, allocations: 1.984 MB / 1.046 GB, free: 6.523 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.9471, allocations: 59.84 kB / 1.046 GB, free: 6.453 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006761/0.9477, allocations: 0.5548 MB / 1.047 GB, free: 5.891 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.9478, allocations: 41.7 kB / 1.047 GB, free: 5.844 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.9481, allocations: 414.9 kB / 1.047 GB, free: 5.434 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.9484, allocations: 173.6 kB / 1.047 GB, free: 5.262 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.9484, allocations: 16 kB / 1.047 GB, free: 5.246 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002389/0.9487, allocations: 374.7 kB / 1.048 GB, free: 4.871 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005448/0.9492, allocations: 269.8 kB / 1.048 GB, free: 4.609 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005648/0.9498, allocations: 489 kB / 1.048 GB, free: 4.039 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005047/0.9503, allocations: 346 kB / 1.049 GB, free: 3.703 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.9503, allocations: 7.938 kB / 1.049 GB, free: 3.695 MB / 0.795 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001836/0.9522, allocations: 1.083 MB / 1.05 GB, free: 2.594 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.9522, allocations: 8 kB / 1.05 GB, free: 2.586 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.9522, allocations: 8 kB / 1.05 GB, free: 2.578 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.9533, allocations: 287.6 kB / 1.05 GB, free: 2.285 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.9538, allocations: 123.8 kB / 1.05 GB, free: 2.164 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006858/0.9607, allocations: 6.689 MB / 1.057 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006726/0.9614, allocations: 44.02 kB / 1.057 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/0.9615, allocations: 28 kB / 1.057 GB, free: 10.86 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004072/0.9619, allocations: 257.5 kB / 1.057 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.962, allocations: 71.16 kB / 1.057 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.9636, allocations: 0.8886 MB / 1.058 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.9636, allocations: 4 kB / 1.058 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.9636, allocations: 7.953 kB / 1.058 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.9636, allocations: 3.984 kB / 1.058 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.9662, allocations: 1.713 MB / 1.06 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.9663, allocations: 3.984 kB / 1.06 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.9665, allocations: 64.08 kB / 1.06 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007293/0.9673, allocations: 275.1 kB / 1.06 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.9673, allocations: 8 kB / 1.06 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006234/0.9735, allocations: 6.694 MB / 1.066 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9736, allocations: 0 / 1.066 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.9752, allocations: 1.052 MB / 1.067 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/0.9756, allocations: 196.2 kB / 1.068 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.9757, allocations: 12 kB / 1.068 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.9761, allocations: 23.97 kB / 1.068 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.9762, allocations: 51.88 kB / 1.068 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.9762, allocations: 16 kB / 1.068 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004435/0.9767, allocations: 387 kB / 1.068 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9767, allocations: 0 / 1.068 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0008415/0.9775, allocations: 220 kB / 1.068 GB, free: 14.19 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001609/0.9777, allocations: 115.2 kB / 1.068 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001949/0.9796, allocations: 1.264 MB / 1.07 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.9797, allocations: 128 / 1.07 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.9809, allocations: 0.897 MB / 1.071 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009181/0.9818, allocations: 199 kB / 1.071 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.984, allocations: 1.591 MB / 1.072 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.9847, allocations: 1.028 MB / 1.073 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003978/0.9851, allocations: 130 kB / 1.073 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.9852, allocations: 43.44 kB / 1.073 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of SimCode: time 6.71e-07/0.9852, allocations: 0 / 1.073 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of Templates: time 0.01788/1.003, allocations: 10.27 MB / 1.083 GB, free: 14.6 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches