Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 113.7 kB / 16.37 MB, free: 6.012 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.00209/0.00209, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.616/2.616, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 64.09 kB / 0.8707 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3437, allocations: 151.6 MB / 1.019 GB, free: 9.902 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04351/0.3872, allocations: 41.2 MB / 1.059 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02859/0.4158, allocations: 15.08 MB / 1.074 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006147/0.422, allocations: 191.1 kB / 1.074 GB, free: 1.25 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.6173/1.039, allocations: 4.449 MB / 1.078 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.009427/1.049, allocations: 2.796 MB / 1.081 GB, free: 20.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009634/1.059, allocations: 3.157 MB / 1.084 GB, free: 20.01 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01909/1.078, allocations: 11.4 MB / 1.095 GB, free: 19.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01976/1.097, allocations: 12.47 MB / 1.107 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01107/1.109, allocations: 4.815 MB / 1.112 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01335/1.122, allocations: 5.389 MB / 1.117 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.005621/1.128, allocations: 0.9489 MB / 1.118 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01105/1.139, allocations: 2.044 MB / 1.12 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.01043/1.149, allocations: 3.694 MB / 1.124 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01913/1.168, allocations: 4.296 MB / 1.128 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02477/1.193, allocations: 14.27 MB / 1.142 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/1.193, allocations: 0 / 1.142 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.725e-06/1.193, allocations: 4 kB / 1.142 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0005518/1.194, allocations: 0 / 1.142 GB, free: 15.38 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02961/1.223, allocations: 7.606 MB / 1.149 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/1.223, allocations: 9.234 kB / 1.149 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0128/1.236, allocations: 1.514 MB / 1.151 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/1.253, allocations: 4.444 MB / 1.155 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006242/1.254, allocations: 453.4 kB / 1.156 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003718/1.257, allocations: 0.5936 MB / 1.156 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03748/1.295, allocations: 10.69 MB / 1.167 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006234/1.295, allocations: 35.66 kB / 1.167 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004156/1.3, allocations: 272.1 kB / 1.167 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002999/1.303, allocations: 0.7729 MB / 1.168 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/1.324, allocations: 8.565 MB / 1.176 GB, free: 0.7891 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07467/1.399, allocations: 46.53 MB / 1.222 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006651/1.406, allocations: 4.303 MB / 1.226 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005609/1.411, allocations: 3.709 MB / 1.229 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/1.412, allocations: 38.78 kB / 1.229 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/1.412, allocations: 73.34 kB / 1.23 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=353): time 5.2e-06/1.412, allocations: 0 / 1.23 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=578): time 0.5743/1.986, allocations: 122.7 MB / 1.349 GB, free: 11.13 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/1.986, allocations: 111.9 kB / 1.349 GB, free: 11.01 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004253/1.99, allocations: 2.681 MB / 1.352 GB, free: 8.328 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.00124/1.992, allocations: 117.7 kB / 1.352 GB, free: 8.207 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001995/1.994, allocations: 2.681 MB / 1.355 GB, free: 5.504 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.002825/1.996, allocations: 1.958 MB / 1.357 GB, free: 3.562 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001933/1.998, allocations: 0.9248 MB / 1.358 GB, free: 2.629 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000105/1.999, allocations: 301.1 kB / 1.358 GB, free: 2.332 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006026/2.005, allocations: 4.079 MB / 1.362 GB, free: 14.25 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007024/2.012, allocations: 5.015 MB / 1.367 GB, free: 8.91 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01487/2.026, allocations: 9.848 MB / 1.376 GB, free: 14.7 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.38e-05/2.027, allocations: 8 kB / 1.376 GB, free: 14.69 MB / 1.092 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03936/2.066, allocations: 17 MB / 1.393 GB, free: 13.55 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/2.066, allocations: 12 kB / 1.393 GB, free: 13.54 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.693e-05/2.066, allocations: 24 kB / 1.393 GB, free: 13.52 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03181/2.098, allocations: 9.081 MB / 1.402 GB, free: 4.402 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002847/2.101, allocations: 0.5265 MB / 1.402 GB, free: 3.875 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1135/2.214, allocations: 76.96 MB / 1.478 GB, free: 5.387 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005299/2.22, allocations: 283.7 kB / 1.478 GB, free: 5.109 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007412/2.22, allocations: 192 kB / 1.478 GB, free: 4.922 MB / 1.186 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00467/2.225, allocations: 2.43 MB / 1.48 GB, free: 2.48 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/2.226, allocations: 470.5 kB / 1.481 GB, free: 2.016 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03821/2.264, allocations: 16.81 MB / 1.497 GB, free: 1.059 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.976e-05/2.265, allocations: 56.12 kB / 1.497 GB, free: 1.004 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002406/2.265, allocations: 76 kB / 1.497 GB, free: 0.9297 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001273/2.265, allocations: 27.89 kB / 1.497 GB, free: 0.9023 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05654/2.321, allocations: 25.66 MB / 1.523 GB, free: 7.008 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.124e-05/2.322, allocations: 11.94 kB / 1.523 GB, free: 6.996 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/2.324, allocations: 315.5 kB / 1.523 GB, free: 6.688 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02966/2.353, allocations: 8.268 MB / 1.531 GB, free: 14.38 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001257/2.355, allocations: 108 kB / 1.531 GB, free: 14.27 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.8144/3.169, allocations: 73.83 MB / 1.603 GB, free: 399.6 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/3.169, allocations: 12.19 kB / 1.603 GB, free: 399.6 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04539/3.214, allocations: 21.56 MB / 1.624 GB, free: 390.7 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004424/3.219, allocations: 1.364 MB / 1.626 GB, free: 390 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/3.221, allocations: 107.3 kB / 1.626 GB, free: 389.9 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004006/3.225, allocations: 286.8 kB / 1.626 GB, free: 389.9 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002652/3.227, allocations: 0.5224 MB / 1.626 GB, free: 389.8 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004829/3.228, allocations: 143.3 kB / 1.627 GB, free: 389.7 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.002756/3.231, allocations: 1.775 MB / 1.628 GB, free: 389.1 MB / 1.248 GB Notification: Performance of sort global known variables: time 4.6e-07/3.231, allocations: 2.406 kB / 1.628 GB, free: 389.1 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.009635/3.24, allocations: 2.465 MB / 1.631 GB, free: 388.8 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/3.241, allocations: 248.1 kB / 1.631 GB, free: 388.7 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02867/3.27, allocations: 14.53 MB / 1.645 GB, free: 381.8 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-05/3.27, allocations: 2.688 kB / 1.645 GB, free: 381.8 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.02964/3.3, allocations: 9.354 MB / 1.654 GB, free: 375.7 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01292/3.313, allocations: 1.379 MB / 1.656 GB, free: 374.7 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04604/3.359, allocations: 15.57 MB / 1.671 GB, free: 360.6 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0091/3.368, allocations: 4.895 MB / 1.676 GB, free: 356.9 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.004157/3.372, allocations: 0.7461 MB / 1.676 GB, free: 356.2 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/3.373, allocations: 199.4 kB / 1.677 GB, free: 356 MB / 1.248 GB Notification: Performance of SimCode: time 3.246e-06/3.373, allocations: 0 / 1.677 GB, free: 356 MB / 1.248 GB Notification: Performance of Templates: time 0.242/3.615, allocations: 144.7 MB / 1.818 GB, free: 212.7 MB / 1.248 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches