Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 249.5 MB / 257 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 173 kB / 316.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.3 MB / 0.5671 GB, free: 15.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007887/0.0007887, allocations: 86.41 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.386e-05/1.39e-05, allocations: 7.938 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2112, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7825/0.9937, allocations: 201 MB / 1.081 GB, free: 4.055 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.994, allocations: 99.55 kB / 1.082 GB, free: 4 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.205/1.199, allocations: 83.87 MB / 1.163 GB, free: 8.492 MB / 0.7761 GB Notification: Performance of FrontEnd: time 3.797e-06/1.199, allocations: 0 / 1.163 GB, free: 8.492 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0001465/1.199, allocations: 43.94 kB / 1.164 GB, free: 8.449 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004391/1.204, allocations: 1.575 MB / 1.165 GB, free: 6.824 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/1.204, allocations: 8.031 kB / 1.165 GB, free: 6.816 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01148/1.215, allocations: 1.882 MB / 1.167 GB, free: 4.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003899/1.219, allocations: 1.216 MB / 1.168 GB, free: 3.656 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.398e-05/1.219, allocations: 40 kB / 1.168 GB, free: 3.617 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004955/1.22, allocations: 68 kB / 1.168 GB, free: 3.551 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00311/1.223, allocations: 1.699 MB / 1.17 GB, free: 1.848 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003635/1.227, allocations: 2.061 MB / 1.172 GB, free: 15.6 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.325e-05/1.227, allocations: 7.844 kB / 1.172 GB, free: 15.59 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/1.227, allocations: 11.95 kB / 1.172 GB, free: 15.58 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/1.227, allocations: 86.28 kB / 1.172 GB, free: 15.5 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01749/1.245, allocations: 10.42 MB / 1.182 GB, free: 4.496 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/1.247, allocations: 1.662 MB / 1.184 GB, free: 2.773 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/1.248, allocations: 0.8816 MB / 1.185 GB, free: 1.887 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/1.248, allocations: 16.73 kB / 1.185 GB, free: 1.871 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/1.248, allocations: 47.34 kB / 1.185 GB, free: 1.816 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=89): time 3.617e-06/1.248, allocations: 0 / 1.185 GB, free: 1.816 MB / 0.7917 GB Notification: Performance of matching and sorting (n=131): time 0.01328/1.262, allocations: 5.728 MB / 1.19 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/1.262, allocations: 230.9 kB / 1.191 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/1.263, allocations: 0.7585 MB / 1.191 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001654/1.263, allocations: 25.7 kB / 1.191 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005603/1.264, allocations: 0.7066 MB / 1.192 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004769/1.264, allocations: 437.4 kB / 1.192 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/1.265, allocations: 0 / 1.192 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001766/1.265, allocations: 361.9 kB / 1.193 GB, free: 9.453 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/1.266, allocations: 0.928 MB / 1.194 GB, free: 8.523 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/1.268, allocations: 1.191 MB / 1.195 GB, free: 7.234 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/1.269, allocations: 1.076 MB / 1.196 GB, free: 6.156 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/1.269, allocations: 4 kB / 1.196 GB, free: 6.152 MB / 0.8073 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.008261/1.278, allocations: 3.612 MB / 1.199 GB, free: 2.492 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/1.278, allocations: 8 kB / 1.199 GB, free: 2.484 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/1.278, allocations: 8 kB / 1.199 GB, free: 2.477 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006482/1.284, allocations: 1.568 MB / 1.201 GB, free: 0.8672 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/1.287, allocations: 443.3 kB / 1.201 GB, free: 444 kB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02674/1.313, allocations: 23.89 MB / 1.225 GB, free: 7.043 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003046/1.316, allocations: 291.5 kB / 1.225 GB, free: 6.758 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004162/1.317, allocations: 63.95 kB / 1.225 GB, free: 6.695 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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): 82 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006932/1.318, allocations: 136.7 kB / 1.225 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005543/1.318, allocations: 150.2 kB / 1.225 GB, free: 6.406 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008943/1.327, allocations: 3.667 MB / 1.229 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/1.327, allocations: 12 kB / 1.229 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-05/1.327, allocations: 15.98 kB / 1.229 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/1.327, allocations: 3.984 kB / 1.229 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.341, allocations: 5.957 MB / 1.235 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/1.341, allocations: 4 kB / 1.235 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/1.343, allocations: 387.3 kB / 1.235 GB, free: 12.17 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006274/1.349, allocations: 1.475 MB / 1.237 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002477/1.349, allocations: 15.97 kB / 1.237 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02456/1.374, allocations: 22.92 MB / 1.259 GB, free: 2.215 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/1.374, allocations: 0 / 1.259 GB, free: 2.215 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6014/1.975, allocations: 3.613 MB / 1.262 GB, free: 261.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.977, allocations: 447.9 kB / 1.263 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009869/1.978, allocations: 5.156 kB / 1.263 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003394/1.981, allocations: 299.5 kB / 1.263 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008654/1.982, allocations: 128.6 kB / 1.263 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003231/1.983, allocations: 48.09 kB / 1.263 GB, free: 261.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001805/1.984, allocations: 0.5766 MB / 1.264 GB, free: 261.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.61e-07/1.984, allocations: 4.969 kB / 1.264 GB, free: 261.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004141/1.988, allocations: 0.5401 MB / 1.264 GB, free: 261.2 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 54 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(3,100.0%) 9,(3,100.0%) 7,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005592/1.989, allocations: 143.7 kB / 1.265 GB, free: 261.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.007673/1.997, allocations: 4.154 MB / 1.269 GB, free: 259.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.997, allocations: 1.312 kB / 1.269 GB, free: 259.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.005421/2.002, allocations: 2.993 MB / 1.272 GB, free: 258.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/2.005, allocations: 436.2 kB / 1.272 GB, free: 258.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00619/2.011, allocations: 2.809 MB / 1.275 GB, free: 257.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/2.013, allocations: 1.513 MB / 1.276 GB, free: 257 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001977/2.015, allocations: 407.8 kB / 1.277 GB, free: 257 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004237/2.015, allocations: 103.6 kB / 1.277 GB, free: 257 MB / 0.8698 GB Notification: Performance of SimCode: time 1.002e-06/2.015, allocations: 0 / 1.277 GB, free: 257 MB / 0.8698 GB Notification: Performance of Templates: time 0.06751/2.083, allocations: 34.61 MB / 1.31 GB, free: 255.8 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches