Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.001163/0.001163, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.001141/0.001141, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 390.2 MB / 0.665 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.33 kB / 0.8127 GB, free: 33.25 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2749, allocations: 140.4 MB / 0.9498 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02985/0.3048, allocations: 26.45 MB / 0.9756 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01489/0.3197, allocations: 8.016 MB / 0.9834 GB, free: 6.605 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002932/0.3227, allocations: 103.4 kB / 0.9835 GB, free: 6.504 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.007078/0.3298, allocations: 2.572 MB / 0.986 GB, free: 3.926 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004621/0.3345, allocations: 1.458 MB / 0.9875 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.004416/0.3389, allocations: 1.544 MB / 0.989 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007339/0.3463, allocations: 6.15 MB / 0.995 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01359/0.3599, allocations: 8.955 MB / 1.004 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004663/0.3646, allocations: 2.617 MB / 1.006 GB, free: 15.07 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004829/0.3694, allocations: 2.971 MB / 1.009 GB, free: 12.09 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.3713, allocations: 0.5078 MB / 1.01 GB, free: 11.58 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.3753, allocations: 1.276 MB / 1.011 GB, free: 10.3 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.003949/0.3793, allocations: 2.058 MB / 1.013 GB, free: 8.242 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.005681/0.385, allocations: 2.385 MB / 1.015 GB, free: 5.848 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.007723/0.3927, allocations: 6.856 MB / 1.022 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.3927, allocations: 0 / 1.022 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.705e-06/0.3928, allocations: 0 / 1.022 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0002908/0.3931, allocations: 0 / 1.022 GB, free: 14.98 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01185/0.4049, allocations: 4.224 MB / 1.026 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.405, allocations: 11.97 kB / 1.026 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005549/0.4105, allocations: 0.8078 MB / 1.027 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005844/0.4164, allocations: 2.428 MB / 1.029 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002861/0.4167, allocations: 267.7 kB / 1.03 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/0.4183, allocations: 384.5 kB / 1.03 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.4319, allocations: 5.98 MB / 1.036 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/0.4321, allocations: 27.86 kB / 1.036 GB, free: 492 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009155/0.433, allocations: 156 kB / 1.036 GB, free: 336 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006654/0.4337, allocations: 278.9 kB / 1.036 GB, free: 56 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009337/0.443, allocations: 4.516 MB / 1.041 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03226/0.4753, allocations: 27.67 MB / 1.068 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.4771, allocations: 1.121 MB / 1.069 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.4786, allocations: 1.027 MB / 1.07 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.112e-05/0.4787, allocations: 9 kB / 1.07 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4787, allocations: 51.5 kB / 1.07 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=110): time 3.667e-06/0.4787, allocations: 0 / 1.07 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=131): time 0.02349/0.5022, allocations: 9.661 MB / 1.079 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.5023, allocations: 64.72 kB / 1.079 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5236/1.026, allocations: 1.488 MB / 1.081 GB, free: 123.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002901/1.026, allocations: 50.42 kB / 1.081 GB, free: 123.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00108/1.027, allocations: 1.665 MB / 1.082 GB, free: 122.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004046/1.028, allocations: 477.3 kB / 1.083 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005528/1.028, allocations: 325.2 kB / 1.083 GB, free: 122.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.148e-05/1.028, allocations: 307.8 kB / 1.083 GB, free: 122 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/1.03, allocations: 0.9184 MB / 1.084 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/1.032, allocations: 1.463 MB / 1.086 GB, free: 120.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/1.035, allocations: 2.549 MB / 1.088 GB, free: 119.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/1.035, allocations: 5.656 kB / 1.088 GB, free: 119.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006596/1.041, allocations: 3.284 MB / 1.091 GB, free: 117.8 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/1.041, allocations: 13.56 kB / 1.091 GB, free: 117.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/1.041, allocations: 17.8 kB / 1.091 GB, free: 117.8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/1.044, allocations: 0.7422 MB / 1.092 GB, free: 117.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/1.046, allocations: 388.8 kB / 1.093 GB, free: 117.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/1.06, allocations: 17.05 MB / 1.109 GB, free: 102.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/1.063, allocations: 100.5 kB / 1.109 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003552/1.063, allocations: 74.2 kB / 1.109 GB, free: 102.8 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.002663/1.066, allocations: 1.319 MB / 1.111 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004929/1.066, allocations: 199.7 kB / 1.111 GB, free: 102.1 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005293/1.071, allocations: 2.786 MB / 1.114 GB, free: 100.9 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/1.071, allocations: 13.09 kB / 1.114 GB, free: 100.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/1.071, allocations: 7.016 kB / 1.114 GB, free: 100.9 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/1.072, allocations: 11.92 kB / 1.114 GB, free: 100.9 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/1.084, allocations: 6.212 MB / 1.12 GB, free: 98.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/1.084, allocations: 4.531 kB / 1.12 GB, free: 98.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/1.085, allocations: 235.2 kB / 1.12 GB, free: 98.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002505/1.088, allocations: 0.6784 MB / 1.121 GB, free: 98.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/1.088, allocations: 37.88 kB / 1.121 GB, free: 98.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/1.102, allocations: 16.79 MB / 1.137 GB, free: 83.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.102, allocations: 14.56 kB / 1.137 GB, free: 83.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/1.109, allocations: 4.013 MB / 1.141 GB, free: 81.6 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.111, allocations: 450.3 kB / 1.141 GB, free: 81.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000746/1.111, allocations: 33.11 kB / 1.141 GB, free: 81.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/1.113, allocations: 84.33 kB / 1.141 GB, free: 81.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000512/1.113, allocations: 118.5 kB / 1.142 GB, free: 81.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.114, allocations: 42.09 kB / 1.142 GB, free: 81.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00254/1.116, allocations: 0.9904 MB / 1.143 GB, free: 80.86 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.11e-07/1.116, allocations: 0 / 1.143 GB, free: 80.86 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003279/1.119, allocations: 0.6849 MB / 1.143 GB, free: 80.8 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.00032/1.12, allocations: 157.7 kB / 1.143 GB, free: 80.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.006819/1.127, allocations: 4.103 MB / 1.147 GB, free: 78.69 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.127, allocations: 5.406 kB / 1.147 GB, free: 78.69 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003053/1.13, allocations: 2.289 MB / 1.15 GB, free: 77.19 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003683/1.133, allocations: 0.6696 MB / 1.15 GB, free: 76.97 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/1.147, allocations: 8.613 MB / 1.159 GB, free: 71.54 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003125/1.15, allocations: 2.713 MB / 1.161 GB, free: 69.84 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/1.151, allocations: 136.8 kB / 1.162 GB, free: 69.82 MB / 0.8575 GB Notification: Performance of SimCode: time 1.332e-06/1.151, allocations: 0 / 1.162 GB, free: 69.82 MB / 0.8575 GB Notification: Performance of Templates: time 0.1716/1.322, allocations: 209.6 MB / 1.366 GB, free: 6.598 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches