Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 107.2 kB / 16.41 MB, free: 6.461 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.001268/0.001268, allocations: 187 kB / 17.34 MB, free: 5.723 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.05 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.441/2.441, allocations: 437 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.91 kB / 1.019 GB, free: 9.379 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8751/0.8766, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.03964/0.9162, allocations: 37.59 MB / 1.204 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02353/0.9398, allocations: 13.04 MB / 1.217 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005263/0.9451, allocations: 171.1 kB / 1.217 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.9565, allocations: 3.892 MB / 1.221 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.009819/0.9664, allocations: 2.608 MB / 1.223 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.009668/0.9761, allocations: 2.713 MB / 1.226 GB, free: 7.625 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01507/0.9912, allocations: 9.587 MB / 1.235 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01793/1.009, allocations: 10.5 MB / 1.246 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009006/1.018, allocations: 4.07 MB / 1.25 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008947/1.027, allocations: 4.385 MB / 1.254 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.00328/1.031, allocations: 0.7695 MB / 1.255 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006405/1.037, allocations: 1.779 MB / 1.256 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.006372/1.043, allocations: 3.037 MB / 1.259 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.01094/1.054, allocations: 3.587 MB / 1.263 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0194/1.074, allocations: 11.85 MB / 1.274 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/1.074, allocations: 0 / 1.274 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.444e-06/1.074, allocations: 0 / 1.274 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0004847/1.074, allocations: 3.938 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.02181/1.096, allocations: 6.362 MB / 1.281 GB, free: 15.37 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/1.096, allocations: 8.922 kB / 1.281 GB, free: 15.36 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/1.106, allocations: 1.301 MB / 1.282 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009352/1.116, allocations: 3.787 MB / 1.286 GB, free: 10.19 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/1.116, allocations: 382.5 kB / 1.286 GB, free: 9.812 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002039/1.118, allocations: 0.4963 MB / 1.286 GB, free: 9.316 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/1.139, allocations: 8.882 MB / 1.295 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/1.139, allocations: 27.78 kB / 1.295 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001718/1.141, allocations: 227.9 kB / 1.295 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00204/1.143, allocations: 0.6303 MB / 1.296 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/1.157, allocations: 7.014 MB / 1.303 GB, free: 8.172 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05557/1.213, allocations: 40.05 MB / 1.342 GB, free: 12.88 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004889/1.217, allocations: 2.902 MB / 1.345 GB, free: 9.973 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004379/1.222, allocations: 2.663 MB / 1.347 GB, free: 7.301 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000282/1.222, allocations: 26.09 kB / 1.347 GB, free: 7.273 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.933e-05/1.222, allocations: 72.59 kB / 1.347 GB, free: 7.191 MB / 1.076 GB Notification: Performance of pre-optimization done (n=265): time 5.02e-06/1.222, allocations: 0 / 1.347 GB, free: 7.191 MB / 1.076 GB Notification: Performance of matching and sorting (n=424): time 0.3076/1.53, allocations: 74.67 MB / 1.42 GB, free: 11.85 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.53, allocations: 102.7 kB / 1.42 GB, free: 11.74 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005253/1.535, allocations: 2.359 MB / 1.423 GB, free: 9.367 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0009849/1.536, allocations: 97.7 kB / 1.423 GB, free: 9.266 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.001839/1.538, allocations: 2.333 MB / 1.425 GB, free: 6.906 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.002094/1.54, allocations: 1.44 MB / 1.427 GB, free: 5.445 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002493/1.543, allocations: 0.7253 MB / 1.427 GB, free: 4.707 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 9.151e-05/1.543, allocations: 305.1 kB / 1.428 GB, free: 4.406 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004722/1.548, allocations: 2.999 MB / 1.43 GB, free: 1.398 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005421/1.553, allocations: 3.839 MB / 1.434 GB, free: 13.22 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/1.564, allocations: 7.391 MB / 1.441 GB, free: 5.508 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.185e-05/1.565, allocations: 8 kB / 1.441 GB, free: 5.5 MB / 1.17 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03286/1.597, allocations: 12.55 MB / 1.454 GB, free: 8.84 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/1.598, allocations: 16 kB / 1.454 GB, free: 8.824 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.443e-05/1.598, allocations: 28.16 kB / 1.454 GB, free: 8.797 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02465/1.622, allocations: 6.024 MB / 1.46 GB, free: 2.707 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002463/1.625, allocations: 495.2 kB / 1.46 GB, free: 2.223 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09229/1.717, allocations: 73 MB / 1.531 GB, free: 5.895 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/1.721, allocations: 219.7 kB / 1.532 GB, free: 5.68 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/1.723, allocations: 156 kB / 1.532 GB, free: 5.527 MB / 1.264 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 (269): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004774/1.727, allocations: 1.992 MB / 1.534 GB, free: 3.523 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001537/1.729, allocations: 391.4 kB / 1.534 GB, free: 3.137 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03337/1.762, allocations: 12.22 MB / 1.546 GB, free: 6.797 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.633e-05/1.762, allocations: 40 kB / 1.546 GB, free: 6.758 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002136/1.763, allocations: 51.94 kB / 1.546 GB, free: 6.707 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001326/1.763, allocations: 23.92 kB / 1.546 GB, free: 6.684 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8305/2.593, allocations: 19.15 MB / 1.565 GB, free: 350.4 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.874e-05/2.593, allocations: 7.812 kB / 1.565 GB, free: 350.4 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/2.595, allocations: 283.1 kB / 1.565 GB, free: 350.3 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01995/2.615, allocations: 5.579 MB / 1.57 GB, free: 349.9 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000838/2.616, allocations: 79.62 kB / 1.571 GB, free: 349.8 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06561/2.681, allocations: 70.61 MB / 1.64 GB, free: 292.2 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/2.681, allocations: 8 kB / 1.64 GB, free: 292.2 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02791/2.709, allocations: 15.61 MB / 1.655 GB, free: 276.6 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/2.713, allocations: 1.044 MB / 1.656 GB, free: 275.6 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000972/2.714, allocations: 81.27 kB / 1.656 GB, free: 275.5 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/2.716, allocations: 219.7 kB / 1.656 GB, free: 275.3 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001382/2.718, allocations: 410.1 kB / 1.656 GB, free: 274.9 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/2.718, allocations: 108 kB / 1.657 GB, free: 274.8 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.00195/2.72, allocations: 1.556 MB / 1.658 GB, free: 273.2 MB / 1.279 GB Notification: Performance of sort global known variables: time 1.1e-07/2.72, allocations: 0 / 1.658 GB, free: 273.2 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.007305/2.727, allocations: 1.859 MB / 1.66 GB, free: 271.4 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (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]) * 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 (145): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,8,100.0%), (2,8,100.0%), (2,8,100.0%), (3,15,100.0%), (3,15,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001165/2.728, allocations: 227.2 kB / 1.66 GB, free: 271.1 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01863/2.747, allocations: 12.2 MB / 1.672 GB, free: 258.6 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 2.142e-05/2.747, allocations: 4 kB / 1.672 GB, free: 258.6 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.01446/2.761, allocations: 8.352 MB / 1.68 GB, free: 250 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006999/2.769, allocations: 1.192 MB / 1.681 GB, free: 248.8 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/2.789, allocations: 12.93 MB / 1.694 GB, free: 235.9 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004818/2.794, allocations: 4.16 MB / 1.698 GB, free: 231.7 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009537/2.795, allocations: 195.4 kB / 1.698 GB, free: 231.5 MB / 1.279 GB Notification: Performance of SimCode: time 1.343e-06/2.795, allocations: 0 / 1.698 GB, free: 231.5 MB / 1.279 GB Notification: Performance of Templates: time 1.241/4.036, allocations: 0.7441 GB / 2.442 GB, free: 182.5 MB / 1.451 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches