Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001084, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.008306/0.008307, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.445/1.445, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.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.697/2.697, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004599/0.0004598, allocations: 8 kB / 0.8728 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.758/0.7585, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03445/0.793, allocations: 31.53 MB / 1.054 GB, free: 268 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01642/0.8094, allocations: 10.17 MB / 1.064 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.8125, allocations: 131.3 kB / 1.064 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.8144, allocations: 0.6279 MB / 1.064 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.8189, allocations: 1.739 MB / 1.066 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004391/0.8233, allocations: 1.766 MB / 1.068 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01101/0.8343, allocations: 10.57 MB / 1.078 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01946/0.8539, allocations: 12.07 MB / 1.09 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00586/0.8597, allocations: 2.237 MB / 1.092 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005293/0.8651, allocations: 2.962 MB / 1.095 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001513/0.8666, allocations: 268 kB / 1.095 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004465/0.8711, allocations: 1.704 MB / 1.097 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003562/0.8747, allocations: 2.046 MB / 1.099 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005003/0.8797, allocations: 2.345 MB / 1.101 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.8931, allocations: 9.65 MB / 1.111 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.8931, allocations: 0 / 1.111 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.597e-06/0.8931, allocations: 0 / 1.111 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0003939/0.8935, allocations: 4 kB / 1.111 GB, free: 5.73 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01075/0.9043, allocations: 4.019 MB / 1.115 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.9044, allocations: 16.03 kB / 1.115 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006192/0.9106, allocations: 0.9512 MB / 1.116 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006106/0.9167, allocations: 2.862 MB / 1.118 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005284/0.9173, allocations: 349.7 kB / 1.119 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001615/0.9189, allocations: 468.1 kB / 1.119 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.9362, allocations: 7.663 MB / 1.127 GB, free: 4.934 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/0.9365, allocations: 27.78 kB / 1.127 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/0.9377, allocations: 204 kB / 1.127 GB, free: 4.707 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004051/0.9381, allocations: 316.9 kB / 1.127 GB, free: 4.395 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01171/0.9499, allocations: 5.706 MB / 1.133 GB, free: 14.67 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04313/0.993, allocations: 35.13 MB / 1.167 GB, free: 8.332 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003043/0.9961, allocations: 2.158 MB / 1.169 GB, free: 6.059 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.998, allocations: 1.261 MB / 1.17 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.9981, allocations: 17.25 kB / 1.17 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.9981, allocations: 47.88 kB / 1.17 GB, free: 4.727 MB / 0.92 GB Notification: Performance of pre-optimization done (n=133): time 3.487e-06/0.9981, allocations: 0 / 1.17 GB, free: 4.727 MB / 0.92 GB Notification: Performance of matching and sorting (n=136): time 0.01541/1.014, allocations: 7.127 MB / 1.177 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/1.014, allocations: 64.72 kB / 1.178 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/1.016, allocations: 1.48 MB / 1.179 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/1.017, allocations: 49.7 kB / 1.179 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001442/1.018, allocations: 2.008 MB / 1.181 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005295/1.019, allocations: 493 kB / 1.181 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/1.019, allocations: 149.6 kB / 1.182 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001047/1.019, allocations: 305.1 kB / 1.182 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/1.02, allocations: 0.9135 MB / 1.183 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/1.022, allocations: 1.589 MB / 1.184 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003546/1.026, allocations: 2.737 MB / 1.187 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/1.026, allocations: 8 kB / 1.187 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006457/1.032, allocations: 3.53 MB / 1.19 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/1.033, allocations: 17.72 kB / 1.19 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.385e-05/1.033, allocations: 20 kB / 1.19 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/1.035, allocations: 0.9156 MB / 1.191 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/1.037, allocations: 343.4 kB / 1.192 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01975/1.056, allocations: 21.24 MB / 1.212 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/1.058, allocations: 103.9 kB / 1.213 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/1.058, allocations: 83.98 kB / 1.213 GB, free: 6.883 MB / 0.9669 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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 prepare postOptimizeDAE: time 0.002969/1.061, allocations: 1.609 MB / 1.214 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004471/1.062, allocations: 209.5 kB / 1.214 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005454/1.067, allocations: 2.994 MB / 1.217 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/1.067, allocations: 12 kB / 1.217 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.489e-05/1.067, allocations: 12 kB / 1.217 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/1.067, allocations: 7.969 kB / 1.217 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/1.08, allocations: 7.321 MB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/1.08, allocations: 12.09 kB / 1.225 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008177/1.08, allocations: 179.7 kB / 1.225 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/1.083, allocations: 0.8179 MB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/1.083, allocations: 32 kB / 1.226 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0182/1.101, allocations: 20.33 MB / 1.245 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.101, allocations: 8 kB / 1.245 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005271/1.106, allocations: 3.035 MB / 1.248 GB, free: 280 kB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.6334/1.74, allocations: 455.1 kB / 1.249 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005555/1.741, allocations: 29.45 kB / 1.249 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.742, allocations: 73.78 kB / 1.249 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004568/1.742, allocations: 123.5 kB / 1.249 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.742, allocations: 37.97 kB / 1.249 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001748/1.744, allocations: 0.9787 MB / 1.25 GB, free: 204.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.81e-07/1.744, allocations: 0 / 1.25 GB, free: 204.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00337/1.747, allocations: 0.7839 MB / 1.251 GB, free: 204.7 MB / 0.9981 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002729/1.748, allocations: 144.1 kB / 1.251 GB, free: 204.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006673/1.754, allocations: 4.025 MB / 1.255 GB, free: 203.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.754, allocations: 1.375 kB / 1.255 GB, free: 203.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004654/1.759, allocations: 2.747 MB / 1.257 GB, free: 201.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005046/1.764, allocations: 0.6676 MB / 1.258 GB, free: 201.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01839/1.782, allocations: 9.164 MB / 1.267 GB, free: 196.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004895/1.787, allocations: 3.114 MB / 1.27 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002108/1.79, allocations: 454.5 kB / 1.271 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003483/1.79, allocations: 113.8 kB / 1.271 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.834e-06/1.79, allocations: 4 kB / 1.271 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.05813/1.848, allocations: 34.13 MB / 1.304 GB, free: 178.3 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches