Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 106.4 kB / 15.99 MB, free: 5.887 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.001611/0.001611, allocations: 193.7 kB / 16.91 MB, free: 5.746 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.458/1.458, allocations: 222.9 MB / 240.6 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.983/2.983, allocations: 482.4 MB / 0.755 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 66.38 kB / 0.924 GB, free: 29.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3322, allocations: 162.2 MB / 1.082 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01308/0.3453, allocations: 10.06 MB / 1.092 GB, free: 3.461 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005923/0.3513, allocations: 3.147 MB / 1.095 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007875/0.3521, allocations: 31.81 kB / 1.095 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.3539, allocations: 0.5485 MB / 1.096 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.3555, allocations: 0.6887 MB / 1.097 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.3572, allocations: 0.6858 MB / 1.097 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003648/0.3608, allocations: 3 MB / 1.1 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004703/0.3656, allocations: 3.075 MB / 1.103 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.3678, allocations: 1.27 MB / 1.104 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.3704, allocations: 1.656 MB / 1.106 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004367/0.3709, allocations: 236 kB / 1.106 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.3721, allocations: 0.4994 MB / 1.107 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.3733, allocations: 1.072 MB / 1.108 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.3748, allocations: 1.116 MB / 1.109 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003634/0.3784, allocations: 3.091 MB / 1.112 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.3784, allocations: 7.875 kB / 1.112 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.908e-06/0.3784, allocations: 0 / 1.112 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 9.804e-05/0.3786, allocations: 0 / 1.112 GB, free: 15.26 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.004939/0.3835, allocations: 2.142 MB / 1.114 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3836, allocations: 8.031 kB / 1.114 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009138/0.3927, allocations: 1.313 MB / 1.115 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.3962, allocations: 1.259 MB / 1.117 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3964, allocations: 119.4 kB / 1.117 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004921/0.3969, allocations: 148.3 kB / 1.117 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006254/0.4031, allocations: 3.433 MB / 1.12 GB, free: 6.637 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.711e-05/0.4032, allocations: 15.84 kB / 1.12 GB, free: 6.621 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.4035, allocations: 59.97 kB / 1.12 GB, free: 6.562 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003529/0.4038, allocations: 207.1 kB / 1.12 GB, free: 6.359 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006014/0.4098, allocations: 3.124 MB / 1.123 GB, free: 3.23 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.021/0.4309, allocations: 13.62 MB / 1.137 GB, free: 4.73 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002752/0.4337, allocations: 1.727 MB / 1.138 GB, free: 3 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002172/0.4359, allocations: 1.444 MB / 1.14 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.436, allocations: 13 kB / 1.14 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.436, allocations: 47.56 kB / 1.14 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=104): time 2.945e-06/0.4361, allocations: 0 / 1.14 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of matching and sorting (n=183): time 0.1468/0.5828, allocations: 36.67 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.5829, allocations: 69.41 kB / 1.176 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001684/0.5846, allocations: 1.053 MB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0003894/0.585, allocations: 57.64 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006548/0.5857, allocations: 0.7913 MB / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007875/0.5865, allocations: 0.6199 MB / 1.178 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008243/0.5873, allocations: 367.3 kB / 1.179 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5875, allocations: 301.1 kB / 1.179 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003042/0.5905, allocations: 1.936 MB / 1.181 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003462/0.594, allocations: 2.285 MB / 1.183 GB, free: 5.016 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006845/0.6009, allocations: 4.388 MB / 1.187 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.6009, allocations: 0 / 1.187 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02208/0.623, allocations: 9.02 MB / 1.196 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.6231, allocations: 11.94 kB / 1.196 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.6231, allocations: 12.03 kB / 1.196 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01798/0.6411, allocations: 5.008 MB / 1.201 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000916/0.6421, allocations: 191.6 kB / 1.201 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06228/0.7044, allocations: 38.93 MB / 1.239 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.7064, allocations: 99.89 kB / 1.239 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/0.7066, allocations: 72 kB / 1.239 GB, free: 10.53 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001469/0.7081, allocations: 0.7955 MB / 1.24 GB, free: 9.727 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003707/0.7085, allocations: 142.3 kB / 1.24 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02109/0.7296, allocations: 8.89 MB / 1.249 GB, free: 0.6602 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/0.7296, allocations: 16 kB / 1.249 GB, free: 0.6445 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.784e-05/0.7297, allocations: 32 kB / 1.249 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.706e-05/0.7298, allocations: 11.95 kB / 1.249 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6356/1.365, allocations: 13.3 MB / 1.262 GB, free: 155.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.644e-05/1.365, allocations: 4.406 kB / 1.262 GB, free: 155.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005477/1.366, allocations: 116.5 kB / 1.262 GB, free: 155.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01775/1.384, allocations: 4.789 MB / 1.267 GB, free: 154.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004819/1.384, allocations: 33.75 kB / 1.267 GB, free: 154.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05939/1.444, allocations: 34.87 MB / 1.301 GB, free: 138.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.444, allocations: 11.81 kB / 1.301 GB, free: 138.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01997/1.464, allocations: 8.393 MB / 1.309 GB, free: 134.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/1.465, allocations: 0.6136 MB / 1.31 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003498/1.465, allocations: 35.38 kB / 1.31 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/1.467, allocations: 86.73 kB / 1.31 GB, free: 134.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009275/1.468, allocations: 167.5 kB / 1.31 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/1.468, allocations: 46.98 kB / 1.31 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008457/1.469, allocations: 0.7436 MB / 1.311 GB, free: 133.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.469, allocations: 0 / 1.311 GB, free: 133.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003126/1.472, allocations: 1.003 MB / 1.312 GB, free: 133.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003343/1.472, allocations: 154.2 kB / 1.312 GB, free: 133.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009252/1.481, allocations: 6.699 MB / 1.318 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.481, allocations: 0 / 1.318 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007872/1.489, allocations: 3.834 MB / 1.322 GB, free: 124.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/1.492, allocations: 242.9 kB / 1.322 GB, free: 124.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007633/1.499, allocations: 6.09 MB / 1.328 GB, free: 118 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/1.501, allocations: 1.893 MB / 1.33 GB, free: 116 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/1.501, allocations: 63.44 kB / 1.33 GB, free: 116 MB / 0.9981 GB Notification: Performance of SimCode: time 8.11e-07/1.501, allocations: 0 / 1.33 GB, free: 116 MB / 0.9981 GB Notification: Performance of Templates: time 0.06325/1.564, allocations: 69.03 MB / 1.398 GB, free: 46.94 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches