Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,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.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002623/0.002624, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.539/1.539, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.821/2.821, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001926, allocations: 67.89 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7094/0.7113, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01912/0.7305, allocations: 14.78 MB / 1.032 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01647/0.747, allocations: 10.36 MB / 1.042 GB, free: 9.266 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.749, allocations: 59.62 kB / 1.042 GB, free: 9.207 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004604/0.7537, allocations: 1.674 MB / 1.044 GB, free: 7.531 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00566/0.7593, allocations: 1.829 MB / 1.045 GB, free: 5.699 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002279/0.7616, allocations: 0.7562 MB / 1.046 GB, free: 4.945 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004473/0.7661, allocations: 2.735 MB / 1.049 GB, free: 2.199 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002216/0.7683, allocations: 1.427 MB / 1.05 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.771, allocations: 1.496 MB / 1.052 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.7729, allocations: 1.156 MB / 1.053 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002773/0.7732, allocations: 164 kB / 1.053 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001624/0.7748, allocations: 0.7838 MB / 1.054 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0007587/0.7756, allocations: 0.6154 MB / 1.054 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.7768, allocations: 0.9522 MB / 1.055 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003356/0.7801, allocations: 2.726 MB / 1.058 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.7802, allocations: 4 kB / 1.058 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7802, allocations: 0 / 1.058 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.043e-05/0.7802, allocations: 0 / 1.058 GB, free: 8.82 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.003838/0.7841, allocations: 2.174 MB / 1.06 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.7841, allocations: 12.03 kB / 1.06 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.7958, allocations: 2.112 MB / 1.062 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002881/0.7987, allocations: 1.213 MB / 1.063 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.602e-05/0.7988, allocations: 82.69 kB / 1.063 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.7991, allocations: 120.1 kB / 1.063 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006143/0.8053, allocations: 2.678 MB / 1.066 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.652e-05/0.8054, allocations: 3.938 kB / 1.066 GB, free: 164 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001682/0.8055, allocations: 55.98 kB / 1.066 GB, free: 108 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006946/0.8062, allocations: 190.1 kB / 1.066 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007919/0.8142, allocations: 2.795 MB / 1.069 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01674/0.8309, allocations: 10.52 MB / 1.079 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006987/0.8379, allocations: 2.332 MB / 1.082 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003243/0.8412, allocations: 1.276 MB / 1.083 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.8413, allocations: 17 kB / 1.083 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.8413, allocations: 39.56 kB / 1.083 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=89): time 2.715e-06/0.8413, allocations: 4 kB / 1.083 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of matching and sorting (n=153): time 0.06328/0.9046, allocations: 16.48 MB / 1.099 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.9048, allocations: 68.72 kB / 1.099 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.9067, allocations: 1.168 MB / 1.1 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002335/0.9069, allocations: 53.7 kB / 1.1 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000606/0.9076, allocations: 0.7435 MB / 1.101 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006104/0.9082, allocations: 0.5198 MB / 1.101 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005709/0.9087, allocations: 287.4 kB / 1.102 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.9089, allocations: 313 kB / 1.102 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/0.9126, allocations: 1.507 MB / 1.103 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004359/0.917, allocations: 1.784 MB / 1.105 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007953/0.9249, allocations: 3.362 MB / 1.108 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.925, allocations: 4 kB / 1.109 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01443/0.9394, allocations: 5.277 MB / 1.114 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.9395, allocations: 9.875 kB / 1.114 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.9395, allocations: 8 kB / 1.114 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007175/0.9467, allocations: 1.892 MB / 1.116 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/0.9489, allocations: 423.2 kB / 1.116 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03443/0.9834, allocations: 24.15 MB / 1.14 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.9866, allocations: 307.5 kB / 1.14 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.9869, allocations: 71.95 kB / 1.14 GB, free: 2.336 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001205/0.9881, allocations: 460.9 kB / 1.14 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.9886, allocations: 173.9 kB / 1.14 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/1.003, allocations: 5.324 MB / 1.146 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.003, allocations: 16 kB / 1.146 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.095e-05/1.004, allocations: 20.47 kB / 1.146 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/1.004, allocations: 12 kB / 1.146 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/1.022, allocations: 7.422 MB / 1.153 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/1.022, allocations: 8.328 kB / 1.153 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/1.024, allocations: 351.4 kB / 1.153 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006387/1.03, allocations: 1.723 MB / 1.155 GB, free: 2.648 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002716/1.03, allocations: 43.97 kB / 1.155 GB, free: 2.605 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03206/1.062, allocations: 23.32 MB / 1.178 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.062, allocations: 4 kB / 1.178 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01347/1.076, allocations: 4.889 MB / 1.183 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/1.077, allocations: 490.8 kB / 1.183 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003333/1.078, allocations: 31.98 kB / 1.183 GB, free: 4.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.08, allocations: 315.5 kB / 1.183 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/1.081, allocations: 153 kB / 1.184 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.081, allocations: 55.97 kB / 1.184 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001131/1.082, allocations: 0.7899 MB / 1.184 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.082, allocations: 0 / 1.184 GB, free: 3.355 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002309/1.084, allocations: 0.6523 MB / 1.185 GB, free: 2.703 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003144/1.084, allocations: 147.1 kB / 1.185 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01295/1.097, allocations: 5.429 MB / 1.19 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.098, allocations: 4.125 kB / 1.19 GB, free: 13 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.007781/1.105, allocations: 3.351 MB / 1.194 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/1.108, allocations: 0.5565 MB / 1.194 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/1.118, allocations: 4.34 MB / 1.198 GB, free: 4.633 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/1.12, allocations: 1.564 MB / 1.2 GB, free: 3.031 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001925/1.122, allocations: 386.4 kB / 1.2 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/1.122, allocations: 107.4 kB / 1.2 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of SimCode: time 1.573e-06/1.122, allocations: 0 / 1.2 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of Templates: time 0.08471/1.207, allocations: 44.86 MB / 1.244 GB, free: 6.16 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches