Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.0009598/0.0009597, allocations: 99.34 kB / 16.02 MB, free: 76 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.00105/0.00105, allocations: 185 kB / 16.92 MB, free: 6.75 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.274/1.274, allocations: 223.3 MB / 241 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.561/2.561, allocations: 443.2 MB / 0.7181 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 12.66 kB / 0.8801 GB, free: 42.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2499, allocations: 155.2 MB / 1.032 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.0054/0.2554, allocations: 4.733 MB / 1.036 GB, free: 8 kB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004629/0.2601, allocations: 3.288 MB / 1.039 GB, free: 12.71 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.2604, allocations: 7.938 kB / 1.039 GB, free: 12.7 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005802/0.261, allocations: 175.1 kB / 1.04 GB, free: 12.53 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0008533/0.2618, allocations: 344.3 kB / 1.04 GB, free: 12.19 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006094/0.2625, allocations: 255.5 kB / 1.04 GB, free: 11.94 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001004/0.2635, allocations: 0.8492 MB / 1.041 GB, free: 11.09 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.2647, allocations: 0.8294 MB / 1.042 GB, free: 10.23 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.2651, allocations: 219.1 kB / 1.042 GB, free: 10.01 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.2655, allocations: 267 kB / 1.042 GB, free: 9.75 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.421e-05/0.2655, allocations: 20 kB / 1.042 GB, free: 9.73 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000535/0.2661, allocations: 327.4 kB / 1.043 GB, free: 9.41 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2662, allocations: 139.6 kB / 1.043 GB, free: 9.273 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.2664, allocations: 224.6 kB / 1.043 GB, free: 9.047 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006408/0.2671, allocations: 0.6584 MB / 1.044 GB, free: 8.387 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2671, allocations: 0 / 1.044 GB, free: 8.387 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2671, allocations: 0 / 1.044 GB, free: 8.387 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.2671, allocations: 0 / 1.044 GB, free: 8.387 MB / 0.795 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.001235/0.2683, allocations: 0.7264 MB / 1.044 GB, free: 7.613 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2684, allocations: 8.031 kB / 1.044 GB, free: 7.605 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002766/0.2712, allocations: 0.675 MB / 1.045 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/0.2719, allocations: 451.8 kB / 1.045 GB, free: 6.449 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.2719, allocations: 25.02 kB / 1.045 GB, free: 6.426 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.249e-05/0.272, allocations: 36.06 kB / 1.045 GB, free: 6.391 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.2736, allocations: 0.8318 MB / 1.046 GB, free: 5.527 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2736, allocations: 3.938 kB / 1.046 GB, free: 5.523 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.317e-05/0.2737, allocations: 12 kB / 1.046 GB, free: 5.512 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/0.2739, allocations: 64.58 kB / 1.046 GB, free: 5.449 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00207/0.2759, allocations: 0.9273 MB / 1.047 GB, free: 4.52 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.2797, allocations: 2.875 MB / 1.05 GB, free: 1.438 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.2814, allocations: 0.5566 MB / 1.051 GB, free: 0.8711 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007643/0.2822, allocations: 312.6 kB / 1.051 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.2823, allocations: 89.09 kB / 1.051 GB, free: 468 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.2823, allocations: 34.56 kB / 1.051 GB, free: 424 kB / 0.795 GB Notification: Performance of pre-optimization done (n=22): time 2.024e-06/0.2824, allocations: 0 / 1.051 GB, free: 424 kB / 0.795 GB Notification: Performance of matching and sorting (n=32): time 0.01268/0.295, allocations: 3.535 MB / 1.055 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.2951, allocations: 59.41 kB / 1.055 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.2956, allocations: 404.3 kB / 1.055 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.2957, allocations: 29.7 kB / 1.055 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.2958, allocations: 223.9 kB / 1.055 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.2959, allocations: 118.4 kB / 1.055 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.296, allocations: 41.64 kB / 1.055 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2961, allocations: 342.8 kB / 1.056 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009402/0.2971, allocations: 395.7 kB / 1.056 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009714/0.2981, allocations: 472.1 kB / 1.057 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/0.3, allocations: 0.8554 MB / 1.057 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3, allocations: 7.938 kB / 1.057 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005499/0.3055, allocations: 1.673 MB / 1.059 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.3057, allocations: 148 kB / 1.059 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3057, allocations: 11.98 kB / 1.059 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004234/0.3099, allocations: 0.9191 MB / 1.06 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/0.3106, allocations: 135.8 kB / 1.06 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007957/0.3186, allocations: 6.224 MB / 1.066 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008434/0.3194, allocations: 111.9 kB / 1.066 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.3195, allocations: 19.98 kB / 1.066 GB, free: 120 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.3195, allocations: 6.031 kB / 1.066 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004852/0.3244, allocations: 1.617 MB / 1.068 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3244, allocations: 0 / 1.068 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/0.3274, allocations: 0.6824 MB / 1.069 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006358/0.3281, allocations: 139.8 kB / 1.069 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/0.3336, allocations: 5.34 MB / 1.074 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008033/0.3344, allocations: 99.84 kB / 1.074 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.3345, allocations: 19.98 kB / 1.074 GB, free: 7.758 MB / 0.8262 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.0004061/0.3349, allocations: 325 kB / 1.074 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.356e-05/0.335, allocations: 43.47 kB / 1.074 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005107/0.3401, allocations: 1.564 MB / 1.076 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3402, allocations: 7.984 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3402, allocations: 0 / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.984e-06/0.3402, allocations: 3.938 kB / 1.076 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005885/0.3461, allocations: 2.256 MB / 1.078 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.3461, allocations: 3.984 kB / 1.078 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004222/0.3466, allocations: 87.91 kB / 1.078 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/0.3504, allocations: 0.8645 MB / 1.079 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-05/0.3505, allocations: 8 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00715/0.3576, allocations: 6.059 MB / 1.085 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3577, allocations: 8.094 kB / 1.085 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004864/0.3625, allocations: 1.589 MB / 1.087 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.3628, allocations: 172.7 kB / 1.087 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.3629, allocations: 11.94 kB / 1.087 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006235/0.3635, allocations: 91.86 kB / 1.087 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.3637, allocations: 27.95 kB / 1.087 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.3637, allocations: 12 kB / 1.087 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003438/0.3641, allocations: 299.1 kB / 1.087 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3641, allocations: 0 / 1.087 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009148/0.365, allocations: 236 kB / 1.087 GB, free: 9.539 MB / 0.8419 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.000201/0.3652, allocations: 115.2 kB / 1.088 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004352/0.3696, allocations: 2.189 MB / 1.09 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.3696, allocations: 4 kB / 1.09 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.3711, allocations: 0.8165 MB / 1.09 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008137/0.3719, allocations: 121.5 kB / 1.091 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.374, allocations: 1.365 MB / 1.092 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.3745, allocations: 0.9218 MB / 1.093 GB, free: 3.785 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.3746, allocations: 35.42 kB / 1.093 GB, free: 3.75 MB / 0.8419 GB Notification: Performance of SimCode: time 6.01e-07/0.3747, allocations: 0 / 1.093 GB, free: 3.75 MB / 0.8419 GB Notification: Performance of Templates: time 0.01726/0.3919, allocations: 15.12 MB / 1.108 GB, free: 4.664 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches