Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 106.5 kB / 16.27 MB, free: 6.414 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.001732/0.001732, allocations: 189.3 kB / 17.2 MB, free: 5.953 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.632/2.632, allocations: 437 MB / 0.711 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 72.42 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.299, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.008164/0.3072, allocations: 5.532 MB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.004654/0.3119, allocations: 2.654 MB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005354/0.3125, allocations: 23.81 kB / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.3146, allocations: 0.6891 MB / 1.027 GB, free: 1.707 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.3158, allocations: 409.7 kB / 1.027 GB, free: 1.305 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.317, allocations: 399 kB / 1.027 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001467/0.3185, allocations: 0.9591 MB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008529/0.3193, allocations: 478.6 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007171/0.3201, allocations: 366.7 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006999/0.3208, allocations: 410.4 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002236/0.321, allocations: 48 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009126/0.3219, allocations: 363.3 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003303/0.3223, allocations: 243.3 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000504/0.3228, allocations: 346.2 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.3241, allocations: 0.9734 MB / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3241, allocations: 0 / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3241, allocations: 0 / 1.031 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.831e-05/0.3242, allocations: 0 / 1.031 GB, free: 12.76 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001995/0.3262, allocations: 0.9737 MB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3262, allocations: 8.625 kB / 1.032 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.3277, allocations: 199.8 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008082/0.3285, allocations: 490.4 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.3286, allocations: 45.36 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/0.3288, allocations: 56.55 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.33, allocations: 0.8318 MB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/0.33, allocations: 15.83 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.229e-05/0.3301, allocations: 19.98 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001998/0.3303, allocations: 68.94 kB / 1.034 GB, free: 9.902 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009259/0.3312, allocations: 0.5658 MB / 1.035 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004868/0.3361, allocations: 4.581 MB / 1.039 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.3366, allocations: 299.2 kB / 1.039 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.337, allocations: 221.3 kB / 1.04 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.337, allocations: 4.281 kB / 1.04 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.3371, allocations: 46.83 kB / 1.04 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/0.3371, allocations: 0 / 1.04 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=40): time 0.005882/0.3429, allocations: 2.631 MB / 1.042 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.343, allocations: 59.34 kB / 1.042 GB, free: 1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.3436, allocations: 466 kB / 1.043 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.3437, allocations: 33.7 kB / 1.043 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002725/0.3439, allocations: 339.7 kB / 1.043 GB, free: 160 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.3441, allocations: 153.9 kB / 1.043 GB, free: 4 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/0.3443, allocations: 98.23 kB / 1.043 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3445, allocations: 366.8 kB / 1.044 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003663/0.3448, allocations: 241 kB / 1.044 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.3453, allocations: 406.4 kB / 1.044 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.3462, allocations: 0.6779 MB / 1.045 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3462, allocations: 4 kB / 1.045 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001696/0.3479, allocations: 0.9212 MB / 1.046 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.3479, allocations: 8 kB / 1.046 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.348, allocations: 8 kB / 1.046 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008105/0.3488, allocations: 218.5 kB / 1.046 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.3493, allocations: 115.8 kB / 1.046 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005515/0.3549, allocations: 5.348 MB / 1.051 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005443/0.3554, allocations: 31.97 kB / 1.051 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.429e-05/0.3555, allocations: 20 kB / 1.051 GB, free: 6.957 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003769/0.3559, allocations: 229.7 kB / 1.052 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.3561, allocations: 59.28 kB / 1.052 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.3576, allocations: 0.7849 MB / 1.053 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3577, allocations: 8 kB / 1.053 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3577, allocations: 0 / 1.053 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3577, allocations: 3.984 kB / 1.053 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/0.3602, allocations: 1.495 MB / 1.054 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.3603, allocations: 4.031 kB / 1.054 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.3606, allocations: 63.89 kB / 1.054 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/0.3614, allocations: 210.6 kB / 1.054 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.3614, allocations: 12 kB / 1.054 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005079/0.3665, allocations: 5.27 MB / 1.059 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.3665, allocations: 4.031 kB / 1.059 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.3684, allocations: 1.131 MB / 1.061 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.3688, allocations: 176.4 kB / 1.061 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.833e-05/0.3689, allocations: 11.94 kB / 1.061 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/0.3692, allocations: 23.97 kB / 1.061 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3694, allocations: 35.95 kB / 1.061 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.3694, allocations: 8 kB / 1.061 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003834/0.3698, allocations: 322.8 kB / 1.061 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3698, allocations: 64 / 1.061 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007465/0.3705, allocations: 176 kB / 1.061 GB, free: 12.36 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * 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): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001668/0.3707, allocations: 107.2 kB / 1.061 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001761/0.3725, allocations: 1.067 MB / 1.062 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3725, allocations: 0 / 1.062 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3735, allocations: 0.6798 MB / 1.063 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009306/0.3745, allocations: 189.2 kB / 1.063 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.3767, allocations: 1.327 MB / 1.065 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.3773, allocations: 0.9533 MB / 1.065 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3775, allocations: 39.44 kB / 1.065 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of SimCode: time 7.31e-07/0.3775, allocations: 0 / 1.065 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of Templates: time 0.4648/0.8423, allocations: 14.89 MB / 1.08 GB, free: 59.11 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches