Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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,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_10_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_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001678/0.001678, allocations: 192.6 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.706/2.706, allocations: 437 MB / 0.71 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001229, allocations: 59.91 kB / 0.8687 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6646/0.6658, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.0157/0.6816, allocations: 13.98 MB / 1.03 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01396/0.6956, allocations: 9.303 MB / 1.04 GB, free: 11.38 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.6973, allocations: 51.62 kB / 1.04 GB, free: 11.33 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.7014, allocations: 1.579 MB / 1.041 GB, free: 9.75 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004112/0.7055, allocations: 1.403 MB / 1.042 GB, free: 8.348 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.7074, allocations: 0.6916 MB / 1.043 GB, free: 7.656 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003089/0.7105, allocations: 2.516 MB / 1.046 GB, free: 5.129 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002016/0.7125, allocations: 1.584 MB / 1.047 GB, free: 3.516 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00154/0.7141, allocations: 1.055 MB / 1.048 GB, free: 2.457 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.7155, allocations: 1.187 MB / 1.049 GB, free: 1.266 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002327/0.7157, allocations: 168 kB / 1.05 GB, free: 1.102 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.7171, allocations: 0.7838 MB / 1.05 GB, free: 324 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005651/0.7177, allocations: 0.6193 MB / 1.051 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0008414/0.7186, allocations: 0.9445 MB / 1.052 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002649/0.7212, allocations: 2.772 MB / 1.055 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.7212, allocations: 0 / 1.055 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.387e-06/0.7212, allocations: 4 kB / 1.055 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.965e-05/0.7213, allocations: 0 / 1.055 GB, free: 11.96 MB / 0.8106 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.003852/0.7251, allocations: 2.143 MB / 1.057 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.7252, allocations: 12.03 kB / 1.057 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.7365, allocations: 2.085 MB / 1.059 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.7392, allocations: 1.193 MB / 1.06 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.998e-05/0.7393, allocations: 90.73 kB / 1.06 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002603/0.7395, allocations: 124 kB / 1.06 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005669/0.7452, allocations: 2.68 MB / 1.063 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.277e-05/0.7453, allocations: 11.84 kB / 1.063 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001783/0.7454, allocations: 51.98 kB / 1.063 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006234/0.7461, allocations: 182.1 kB / 1.063 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007384/0.7535, allocations: 2.795 MB / 1.066 GB, free: 332 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01538/0.7689, allocations: 10.52 MB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006705/0.7756, allocations: 2.517 MB / 1.078 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/0.7787, allocations: 1.284 MB / 1.08 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.948e-05/0.7788, allocations: 17 kB / 1.08 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.7789, allocations: 47.48 kB / 1.08 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=89): time 2.986e-06/0.7789, allocations: 0 / 1.08 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.04533/0.8242, allocations: 13.36 MB / 1.093 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.8243, allocations: 64.72 kB / 1.093 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.8259, allocations: 1.113 MB / 1.094 GB, free: 2.496 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.8261, allocations: 49.7 kB / 1.094 GB, free: 2.441 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006565/0.8268, allocations: 0.7194 MB / 1.095 GB, free: 1.715 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005499/0.8274, allocations: 449.4 kB / 1.095 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005431/0.8279, allocations: 259.5 kB / 1.095 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.8281, allocations: 361.9 kB / 1.096 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003181/0.8312, allocations: 1.339 MB / 1.097 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003308/0.8346, allocations: 1.604 MB / 1.098 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006623/0.8412, allocations: 2.991 MB / 1.101 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.8412, allocations: 4 kB / 1.101 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01142/0.8526, allocations: 4.442 MB / 1.106 GB, free: 6.012 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.8527, allocations: 8 kB / 1.106 GB, free: 6.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.8527, allocations: 8 kB / 1.106 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005509/0.8582, allocations: 1.44 MB / 1.107 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002069/0.8603, allocations: 443.2 kB / 1.108 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02691/0.8873, allocations: 26.69 MB / 1.134 GB, free: 7.559 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/0.89, allocations: 299.5 kB / 1.134 GB, free: 7.266 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.8902, allocations: 75.95 kB / 1.134 GB, free: 7.191 MB / 0.8887 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008637/0.8911, allocations: 433.4 kB / 1.134 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000308/0.8914, allocations: 162.1 kB / 1.135 GB, free: 6.598 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/0.9029, allocations: 4.461 MB / 1.139 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.9029, allocations: 12 kB / 1.139 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-05/0.903, allocations: 15.98 kB / 1.139 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.903, allocations: 3.984 kB / 1.139 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/0.9182, allocations: 6.759 MB / 1.146 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.9183, allocations: 8.281 kB / 1.146 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.9201, allocations: 379.4 kB / 1.146 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004976/0.9251, allocations: 1.322 MB / 1.147 GB, free: 9.375 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/0.9253, allocations: 39.97 kB / 1.147 GB, free: 9.336 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02587/0.9511, allocations: 25.5 MB / 1.172 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.9512, allocations: 7.969 kB / 1.172 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/0.9625, allocations: 4.2 MB / 1.176 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.9637, allocations: 459 kB / 1.177 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.964, allocations: 24 kB / 1.177 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/0.9661, allocations: 307.5 kB / 1.177 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000511/0.9666, allocations: 132.6 kB / 1.177 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.9668, allocations: 51.95 kB / 1.177 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.00102/0.9678, allocations: 0.7487 MB / 1.178 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9678, allocations: 7.938 kB / 1.178 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002151/0.97, allocations: 0.5703 MB / 1.179 GB, free: 7.402 MB / 0.9356 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003219/0.9703, allocations: 144.6 kB / 1.179 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01234/0.9827, allocations: 5.513 MB / 1.184 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.9827, allocations: 0 / 1.184 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.007015/0.9897, allocations: 3.491 MB / 1.187 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/0.9923, allocations: 0.5517 MB / 1.188 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008726/1.001, allocations: 4.655 MB / 1.193 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/1.002, allocations: 1.473 MB / 1.194 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001819/1.004, allocations: 425.6 kB / 1.194 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004064/1.005, allocations: 119.4 kB / 1.194 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of SimCode: time 5.61e-07/1.005, allocations: 0 / 1.194 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of Templates: time 0.06372/1.068, allocations: 39.23 MB / 1.233 GB, free: 15.83 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches