Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001521/0.001521, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.67/2.67, allocations: 437.7 MB / 0.7117 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003584, allocations: 8 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8136/0.8139, allocations: 153.8 MB / 1.022 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03357/0.8476, allocations: 30.34 MB / 1.052 GB, free: 1.754 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02329/0.8709, allocations: 13.94 MB / 1.066 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004609/0.8756, allocations: 135.2 kB / 1.066 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.879, allocations: 0.7092 MB / 1.066 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009769/0.8888, allocations: 2.404 MB / 1.069 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.006456/0.8953, allocations: 1.391 MB / 1.07 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0153/0.9106, allocations: 9.777 MB / 1.08 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01854/0.9292, allocations: 9.861 MB / 1.089 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007345/0.9366, allocations: 2.95 MB / 1.092 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007694/0.9443, allocations: 3.398 MB / 1.096 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.9462, allocations: 296 kB / 1.096 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005113/0.9514, allocations: 0.8038 MB / 1.097 GB, free: 3.93 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004244/0.9556, allocations: 2.283 MB / 1.099 GB, free: 1.641 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.003493/0.9592, allocations: 1.128 MB / 1.1 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.9736, allocations: 9.163 MB / 1.109 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.9737, allocations: 0 / 1.109 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.136e-06/0.9737, allocations: 0 / 1.109 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0004445/0.9741, allocations: 0 / 1.109 GB, free: 7.316 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: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01381/0.988, allocations: 4.888 MB / 1.114 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.988, allocations: 16.45 kB / 1.114 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008299/0.9963, allocations: 1.144 MB / 1.115 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009173/1.006, allocations: 3.239 MB / 1.118 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004127/1.006, allocations: 374 kB / 1.118 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002174/1.008, allocations: 499.9 kB / 1.119 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02167/1.03, allocations: 7.958 MB / 1.127 GB, free: 4.777 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002073/1.03, allocations: 19.83 kB / 1.127 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009733/1.031, allocations: 216 kB / 1.127 GB, free: 4.547 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001113/1.032, allocations: 437.6 kB / 1.127 GB, free: 4.117 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/1.047, allocations: 6.053 MB / 1.133 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04853/1.095, allocations: 35.23 MB / 1.168 GB, free: 7.637 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00346/1.099, allocations: 2.018 MB / 1.169 GB, free: 5.617 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002787/1.101, allocations: 1.854 MB / 1.171 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001722/1.102, allocations: 18 kB / 1.171 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.121e-05/1.102, allocations: 56.5 kB / 1.171 GB, free: 3.676 MB / 0.92 GB Notification: Performance of pre-optimization done (n=171): time 4.388e-06/1.102, allocations: 0 / 1.171 GB, free: 3.676 MB / 0.92 GB Notification: Performance of matching and sorting (n=276): time 0.1378/1.24, allocations: 38.98 MB / 1.209 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/1.24, allocations: 81.58 kB / 1.21 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004318/1.244, allocations: 2.251 MB / 1.212 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004399/1.245, allocations: 73.7 kB / 1.212 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001813/1.246, allocations: 2.272 MB / 1.214 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.001423/1.248, allocations: 0.9434 MB / 1.215 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000391/1.248, allocations: 59.94 kB / 1.215 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0003071/1.249, allocations: 428.1 kB / 1.215 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0033/1.252, allocations: 1.962 MB / 1.217 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003788/1.256, allocations: 2.587 MB / 1.22 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003758/1.259, allocations: 2.372 MB / 1.222 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/1.259, allocations: 4 kB / 1.222 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.015/1.274, allocations: 7.724 MB / 1.23 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/1.275, allocations: 12 kB / 1.23 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/1.275, allocations: 19.94 kB / 1.23 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009181/1.284, allocations: 3.211 MB / 1.233 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/1.286, allocations: 403.3 kB / 1.233 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8592/2.145, allocations: 31.08 MB / 1.264 GB, free: 201.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/2.148, allocations: 162.5 kB / 1.264 GB, free: 201.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004286/2.148, allocations: 109.9 kB / 1.264 GB, free: 201.2 MB / 0.9981 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(10,71.0%) 28,(10,65.0%) 28,(6,77.8%) 24,(6,77.8%) 24,(5,92.0%) 17,(5,92.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004482/2.153, allocations: 1.793 MB / 1.266 GB, free: 200.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/2.154, allocations: 331.8 kB / 1.266 GB, free: 200.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/2.169, allocations: 7.33 MB / 1.273 GB, free: 197.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.786e-05/2.17, allocations: 26.41 kB / 1.273 GB, free: 197.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001312/2.17, allocations: 29.75 kB / 1.273 GB, free: 197.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.365e-05/2.17, allocations: 13.12 kB / 1.273 GB, free: 197.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02283/2.193, allocations: 12.91 MB / 1.286 GB, free: 192.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/2.193, allocations: 7.531 kB / 1.286 GB, free: 192.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009249/2.194, allocations: 234.4 kB / 1.286 GB, free: 192.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007417/2.201, allocations: 2.839 MB / 1.289 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/2.201, allocations: 51.34 kB / 1.289 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03267/2.234, allocations: 29.93 MB / 1.318 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/2.234, allocations: 15.89 kB / 1.318 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/2.244, allocations: 6.848 MB / 1.325 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/2.246, allocations: 0.7861 MB / 1.326 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005339/2.247, allocations: 51.98 kB / 1.326 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/2.248, allocations: 167.8 kB / 1.326 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000801/2.249, allocations: 258.1 kB / 1.326 GB, free: 161.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/2.249, allocations: 72 kB / 1.326 GB, free: 161.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001843/2.251, allocations: 1.506 MB / 1.328 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/2.251, allocations: 0 / 1.328 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004402/2.256, allocations: 1.367 MB / 1.329 GB, free: 158.2 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(5,84.0%) 17,(6,77.8%) 24,(10,65.0%) 28,(5,92.0%) 17,(6,77.8%) 24,(10,65.0%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00041/2.256, allocations: 179.4 kB / 1.329 GB, free: 158 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009977/2.266, allocations: 6.921 MB / 1.336 GB, free: 151 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/2.266, allocations: 192 / 1.336 GB, free: 151 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006774/2.273, allocations: 4.407 MB / 1.34 GB, free: 146.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005004/2.278, allocations: 1.042 MB / 1.341 GB, free: 145.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/2.294, allocations: 11.94 MB / 1.353 GB, free: 133.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003589/2.298, allocations: 3.642 MB / 1.356 GB, free: 129.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002318/2.3, allocations: 0.5673 MB / 1.357 GB, free: 129.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/2.3, allocations: 159.4 kB / 1.357 GB, free: 129.1 MB / 0.9981 GB Notification: Performance of SimCode: time 7.22e-07/2.3, allocations: 0 / 1.357 GB, free: 129.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.1051/2.406, allocations: 71.65 MB / 1.427 GB, free: 58.45 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches