Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007859/0.000786, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004951/0.004951, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.776/2.776, allocations: 437.8 MB / 0.7121 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 12 kB / 0.8728 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7875/0.7879, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.007091/0.7951, allocations: 4.733 MB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00566/0.8008, allocations: 3.312 MB / 1.031 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.8013, allocations: 11.94 kB / 1.031 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000939/0.8023, allocations: 167 kB / 1.031 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.8039, allocations: 357 kB / 1.031 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009661/0.8049, allocations: 243.5 kB / 1.032 GB, free: 7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001496/0.8064, allocations: 0.8608 MB / 1.032 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.8078, allocations: 0.8214 MB / 1.033 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003647/0.8081, allocations: 219.1 kB / 1.033 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000415/0.8086, allocations: 267 kB / 1.034 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.8086, allocations: 20 kB / 1.034 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006557/0.8093, allocations: 327.4 kB / 1.034 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.8095, allocations: 147.5 kB / 1.034 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.8097, allocations: 228.6 kB / 1.034 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009059/0.8106, allocations: 0.8041 MB / 1.035 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.8106, allocations: 0 / 1.035 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.745e-06/0.8107, allocations: 3.938 kB / 1.035 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.8107, allocations: 0 / 1.035 GB, free: 3.277 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001406/0.8121, allocations: 0.7265 MB / 1.036 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.8121, allocations: 8.031 kB / 1.036 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002987/0.8151, allocations: 0.7023 MB / 1.037 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007632/0.8159, allocations: 451.8 kB / 1.037 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.8159, allocations: 21.03 kB / 1.037 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/0.816, allocations: 40.11 kB / 1.037 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.8178, allocations: 0.8434 MB / 1.038 GB, free: 392 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.8178, allocations: 4 kB / 1.038 GB, free: 388 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.8179, allocations: 15.94 kB / 1.038 GB, free: 372 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.8181, allocations: 60.59 kB / 1.038 GB, free: 312 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.8202, allocations: 0.9507 MB / 1.039 GB, free: 15.35 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004281/0.8245, allocations: 2.871 MB / 1.042 GB, free: 12.27 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.8264, allocations: 0.5877 MB / 1.042 GB, free: 11.67 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008054/0.8272, allocations: 304.6 kB / 1.043 GB, free: 11.37 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.8274, allocations: 101 kB / 1.043 GB, free: 11.25 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.8274, allocations: 34.56 kB / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of pre-optimization done (n=22): time 2.114e-06/0.8274, allocations: 0 / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=32): time 0.01381/0.8412, allocations: 3.646 MB / 1.046 GB, free: 7.512 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.8413, allocations: 55.39 kB / 1.046 GB, free: 7.445 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.8418, allocations: 400.4 kB / 1.047 GB, free: 7.051 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.8419, allocations: 33.7 kB / 1.047 GB, free: 7.012 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.842, allocations: 235.8 kB / 1.047 GB, free: 6.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.8422, allocations: 110.5 kB / 1.047 GB, free: 6.668 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.758e-05/0.8423, allocations: 37.7 kB / 1.047 GB, free: 6.625 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.8424, allocations: 342.8 kB / 1.047 GB, free: 6.281 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.8435, allocations: 403.6 kB / 1.048 GB, free: 5.887 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.8445, allocations: 488.1 kB / 1.048 GB, free: 5.379 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.8466, allocations: 0.8671 MB / 1.049 GB, free: 4.484 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.8466, allocations: 0 / 1.049 GB, free: 4.484 MB / 0.795 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005778/0.8524, allocations: 1.705 MB / 1.051 GB, free: 2.762 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.8526, allocations: 151.9 kB / 1.051 GB, free: 2.582 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8526, allocations: 0 / 1.051 GB, free: 2.582 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004332/0.8569, allocations: 0.927 MB / 1.052 GB, free: 1.645 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000737/0.8577, allocations: 139.8 kB / 1.052 GB, free: 1.508 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008295/0.866, allocations: 6.217 MB / 1.058 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.867, allocations: 115.8 kB / 1.058 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.8671, allocations: 24.05 kB / 1.058 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/0.8671, allocations: 4 kB / 1.058 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005083/0.8722, allocations: 1.636 MB / 1.06 GB, free: 9.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.8722, allocations: 7.938 kB / 1.06 GB, free: 9.047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003019/0.8753, allocations: 0.6822 MB / 1.06 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006889/0.876, allocations: 139.8 kB / 1.061 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00582/0.8818, allocations: 5.336 MB / 1.066 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008727/0.8827, allocations: 111.9 kB / 1.066 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.8828, allocations: 19.98 kB / 1.066 GB, free: 2.355 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004179/0.8832, allocations: 324.9 kB / 1.066 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.8833, allocations: 39.47 kB / 1.066 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005333/0.8886, allocations: 1.603 MB / 1.068 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.8887, allocations: 4 kB / 1.068 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.8887, allocations: 7.938 kB / 1.068 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.8887, allocations: 0 / 1.068 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005898/0.8946, allocations: 2.248 MB / 1.07 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.8946, allocations: 4 kB / 1.07 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.895, allocations: 83.89 kB / 1.07 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003816/0.8989, allocations: 0.8647 MB / 1.071 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.8989, allocations: 8 kB / 1.071 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007513/0.9065, allocations: 6.063 MB / 1.077 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.9065, allocations: 0 / 1.077 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/0.9116, allocations: 1.585 MB / 1.078 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.9119, allocations: 172.7 kB / 1.079 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.912, allocations: 11.94 kB / 1.079 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006422/0.9127, allocations: 99.86 kB / 1.079 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.9129, allocations: 27.95 kB / 1.079 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.9129, allocations: 8 kB / 1.079 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000428/0.9133, allocations: 311.1 kB / 1.079 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9133, allocations: 0 / 1.079 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001027/0.9144, allocations: 240 kB / 1.079 GB, free: 4.105 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002203/0.9146, allocations: 115.2 kB / 1.079 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.004862/0.9195, allocations: 2.221 MB / 1.082 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.9195, allocations: 0 / 1.082 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001572/0.9211, allocations: 0.8128 MB / 1.082 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008665/0.922, allocations: 131 kB / 1.083 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.9246, allocations: 1.337 MB / 1.084 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008656/0.9255, allocations: 0.9258 MB / 1.085 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006902/0.9262, allocations: 163.2 kB / 1.085 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.9263, allocations: 39.41 kB / 1.085 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of SimCode: time 8.11e-07/0.9264, allocations: 4 kB / 1.085 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of Templates: time 0.02848/0.9548, allocations: 13.98 MB / 1.099 GB, free: 256 kB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches