Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 92.16 kB / 16.02 MB, free: 80 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.001136/0.001136, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.595/2.595, allocations: 390.9 MB / 0.667 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6772/0.6776, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03847/0.7161, allocations: 36.74 MB / 0.9916 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01889/0.7351, allocations: 10.87 MB / 1.002 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004255/0.7394, allocations: 131.2 kB / 1.002 GB, free: 15.51 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002852/0.7422, allocations: 0.7791 MB / 1.003 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.006652/0.7489, allocations: 2.092 MB / 1.005 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005167/0.7541, allocations: 1.797 MB / 1.007 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01474/0.7689, allocations: 13.18 MB / 1.02 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02387/0.7928, allocations: 14.45 MB / 1.034 GB, free: 15.05 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005722/0.7985, allocations: 2.832 MB / 1.037 GB, free: 12.21 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007745/0.8063, allocations: 3.877 MB / 1.04 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002056/0.8084, allocations: 344 kB / 1.041 GB, free: 7.984 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.8128, allocations: 1.33 MB / 1.042 GB, free: 6.652 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.004377/0.8172, allocations: 2.525 MB / 1.045 GB, free: 4.121 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006555/0.8238, allocations: 2.971 MB / 1.047 GB, free: 1.129 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.8357, allocations: 10.21 MB / 1.057 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8357, allocations: 0 / 1.057 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.534e-06/0.8357, allocations: 0 / 1.057 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0004879/0.8362, allocations: 0 / 1.057 GB, free: 6.891 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01366/0.8499, allocations: 5.088 MB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.85, allocations: 12.03 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00632/0.8563, allocations: 1.075 MB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007553/0.8639, allocations: 3.411 MB / 1.067 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000458/0.8644, allocations: 427.7 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00196/0.8663, allocations: 0.5433 MB / 1.068 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02039/0.8867, allocations: 9.381 MB / 1.077 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.8869, allocations: 23.72 kB / 1.077 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001056/0.888, allocations: 248 kB / 1.077 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006256/0.8886, allocations: 418.9 kB / 1.078 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/0.9035, allocations: 7.127 MB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04616/0.9497, allocations: 41.37 MB / 1.125 GB, free: 13.58 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004686/0.9544, allocations: 3.108 MB / 1.128 GB, free: 10.45 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002885/0.9573, allocations: 2.122 MB / 1.13 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001002/0.9575, allocations: 22 kB / 1.13 GB, free: 8.312 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.9575, allocations: 64.5 kB / 1.13 GB, free: 8.238 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=209): time 3.687e-06/0.9575, allocations: 0 / 1.13 GB, free: 8.238 MB / 0.8887 GB Notification: Performance of matching and sorting (n=212): time 0.02471/0.9822, allocations: 10.62 MB / 1.14 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.9823, allocations: 77.34 kB / 1.141 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002674/0.985, allocations: 2.002 MB / 1.142 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0003071/0.9853, allocations: 65.7 kB / 1.143 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001483/0.9868, allocations: 2.408 MB / 1.145 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007184/0.9875, allocations: 0.7318 MB / 1.146 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/0.9878, allocations: 207.1 kB / 1.146 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.9879, allocations: 301.1 kB / 1.146 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.99, allocations: 1.376 MB / 1.147 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/0.9924, allocations: 2.108 MB / 1.149 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004695/0.9971, allocations: 3.766 MB / 1.153 GB, free: 15.77 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/0.9972, allocations: 8 kB / 1.153 GB, free: 15.76 MB / 0.92 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008304/1.005, allocations: 5.068 MB / 1.158 GB, free: 10.67 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/1.006, allocations: 21.5 kB / 1.158 GB, free: 10.65 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/1.006, allocations: 20 kB / 1.158 GB, free: 10.63 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003504/1.009, allocations: 1.583 MB / 1.16 GB, free: 9.035 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/1.011, allocations: 451.2 kB / 1.16 GB, free: 8.594 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/1.033, allocations: 17.11 MB / 1.177 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002508/1.036, allocations: 147.9 kB / 1.177 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000318/1.036, allocations: 104 kB / 1.177 GB, free: 6.703 MB / 0.9356 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003628/1.04, allocations: 1.939 MB / 1.179 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006459/1.04, allocations: 288.7 kB / 1.179 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007332/1.048, allocations: 4.466 MB / 1.184 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/1.048, allocations: 23.94 kB / 1.184 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.618e-05/1.048, allocations: 16 kB / 1.184 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/1.048, allocations: 7.969 kB / 1.184 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/1.063, allocations: 9.657 MB / 1.193 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.063, allocations: 4 kB / 1.193 GB, free: 6.117 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/1.064, allocations: 227.6 kB / 1.193 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/1.067, allocations: 1.437 MB / 1.195 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003334/1.068, allocations: 40 kB / 1.195 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/1.088, allocations: 17.12 MB / 1.211 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.088, allocations: 4 kB / 1.211 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007167/1.096, allocations: 4.537 MB / 1.216 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/1.097, allocations: 0.6342 MB / 1.217 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/1.097, allocations: 36 kB / 1.217 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/1.099, allocations: 123.8 kB / 1.217 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005098/1.099, allocations: 177.6 kB / 1.217 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.099, allocations: 63.88 kB / 1.217 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001848/1.101, allocations: 1.323 MB / 1.218 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/1.101, allocations: 0 / 1.218 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003683/1.105, allocations: 1.137 MB / 1.219 GB, free: 10.61 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004252/1.105, allocations: 167 kB / 1.219 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007264/1.113, allocations: 4.697 MB / 1.224 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.113, allocations: 4.062 kB / 1.224 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004536/1.117, allocations: 2.921 MB / 1.227 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005378/1.123, allocations: 0.8333 MB / 1.228 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/1.141, allocations: 12.54 MB / 1.24 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004453/1.146, allocations: 3.792 MB / 1.244 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007769/1.146, allocations: 163.4 kB / 1.244 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of SimCode: time 1.082e-06/1.146, allocations: 0 / 1.244 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of Templates: time 0.7598/1.906, allocations: 171.2 MB / 1.411 GB, free: 140.5 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches