Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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.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.ACLineMatrix_RL_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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009975/0.0009975, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008037/0.008037, allocations: 169.6 kB / 16.27 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.769/2.769, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004162/0.0004159, allocations: 11.98 kB / 0.8728 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7101/0.7106, allocations: 153.8 MB / 1.023 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02564/0.7363, allocations: 22.58 MB / 1.045 GB, free: 9.324 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01215/0.7484, allocations: 6.438 MB / 1.051 GB, free: 2.867 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002426/0.7509, allocations: 75.56 kB / 1.051 GB, free: 2.793 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.7521, allocations: 472.5 kB / 1.052 GB, free: 2.328 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004395/0.7565, allocations: 1.747 MB / 1.054 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003421/0.7599, allocations: 1.197 MB / 1.055 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01371/0.7737, allocations: 10.61 MB / 1.065 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01377/0.7875, allocations: 8.065 MB / 1.073 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005538/0.7931, allocations: 2.07 MB / 1.075 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005822/0.7989, allocations: 3.181 MB / 1.078 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.8002, allocations: 244 kB / 1.078 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.8039, allocations: 1.065 MB / 1.079 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.003623/0.8075, allocations: 2.112 MB / 1.081 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.004473/0.812, allocations: 2.132 MB / 1.084 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.8231, allocations: 8.132 MB / 1.091 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.8231, allocations: 0 / 1.091 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8231, allocations: 0 / 1.091 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002744/0.8234, allocations: 4 kB / 1.091 GB, free: 9.598 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.009216/0.8326, allocations: 3.562 MB / 1.095 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.8327, allocations: 8.031 kB / 1.095 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009308/0.842, allocations: 1.681 MB / 1.097 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005641/0.8477, allocations: 2.575 MB / 1.099 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002998/0.848, allocations: 275.7 kB / 1.099 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.8495, allocations: 364.2 kB / 1.1 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01777/0.8673, allocations: 7.491 MB / 1.107 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.8675, allocations: 15.88 kB / 1.107 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/0.8686, allocations: 155.9 kB / 1.107 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000689/0.8693, allocations: 483.3 kB / 1.108 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.8827, allocations: 5.697 MB / 1.113 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04155/0.9243, allocations: 31.7 MB / 1.144 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003204/0.9275, allocations: 2.093 MB / 1.146 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003062/0.9306, allocations: 2.163 MB / 1.148 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001866/0.9308, allocations: 13.31 kB / 1.148 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.9308, allocations: 51.88 kB / 1.148 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=146): time 3.938e-06/0.9309, allocations: 0 / 1.148 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of matching and sorting (n=251): time 0.3153/1.246, allocations: 75.28 MB / 1.222 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/1.246, allocations: 77.41 kB / 1.222 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002666/1.249, allocations: 1.674 MB / 1.224 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0005978/1.25, allocations: 65.7 kB / 1.224 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001318/1.251, allocations: 1.755 MB / 1.225 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001098/1.252, allocations: 0.8432 MB / 1.226 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000544/1.253, allocations: 207 kB / 1.226 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000101/1.253, allocations: 305.1 kB / 1.227 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00417/1.257, allocations: 2.726 MB / 1.229 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004548/1.261, allocations: 3.336 MB / 1.233 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009261/1.271, allocations: 6.393 MB / 1.239 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/1.271, allocations: 4 kB / 1.239 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.6771/1.948, allocations: 14.67 MB / 1.253 GB, free: 207.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/1.948, allocations: 15.33 kB / 1.253 GB, free: 207.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-05/1.948, allocations: 18.25 kB / 1.253 GB, free: 207.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03689/1.985, allocations: 9.251 MB / 1.262 GB, free: 206.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/1.986, allocations: 304.7 kB / 1.263 GB, free: 206.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06963/2.056, allocations: 47.15 MB / 1.309 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/2.059, allocations: 219.7 kB / 1.309 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006433/2.06, allocations: 104 kB / 1.309 GB, free: 184.4 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0032/2.063, allocations: 1.581 MB / 1.31 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006449/2.064, allocations: 245.1 kB / 1.311 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02992/2.094, allocations: 14.76 MB / 1.325 GB, free: 167.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.571e-05/2.094, allocations: 24 kB / 1.325 GB, free: 167.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002094/2.094, allocations: 44 kB / 1.325 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.897e-05/2.094, allocations: 11.95 kB / 1.325 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03814/2.132, allocations: 20.52 MB / 1.345 GB, free: 147.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.841e-05/2.132, allocations: 8 kB / 1.345 GB, free: 147.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007414/2.133, allocations: 163.8 kB / 1.345 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02742/2.161, allocations: 9.009 MB / 1.354 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004728/2.161, allocations: 48 kB / 1.354 GB, free: 137.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06594/2.227, allocations: 46.74 MB / 1.4 GB, free: 90.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-06/2.227, allocations: 11.92 kB / 1.4 GB, free: 90.24 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03004/2.257, allocations: 14.36 MB / 1.414 GB, free: 75.74 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003002/2.26, allocations: 0.8494 MB / 1.415 GB, free: 74.87 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001258/2.262, allocations: 51.98 kB / 1.415 GB, free: 74.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/2.264, allocations: 207.7 kB / 1.415 GB, free: 74.61 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0017/2.266, allocations: 245.2 kB / 1.415 GB, free: 74.37 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003828/2.267, allocations: 64 kB / 1.415 GB, free: 74.31 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001776/2.268, allocations: 1.125 MB / 1.416 GB, free: 73.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.8e-07/2.268, allocations: 0 / 1.416 GB, free: 73.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005909/2.274, allocations: 1.617 MB / 1.418 GB, free: 71.54 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005549/2.275, allocations: 166.8 kB / 1.418 GB, free: 71.38 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02097/2.296, allocations: 10.35 MB / 1.428 GB, free: 60.96 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/2.296, allocations: 7.969 kB / 1.428 GB, free: 60.96 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01659/2.312, allocations: 7.158 MB / 1.435 GB, free: 53.73 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006072/2.319, allocations: 0.5253 MB / 1.436 GB, free: 53.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/2.337, allocations: 10.62 MB / 1.446 GB, free: 42.52 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004565/2.342, allocations: 3.228 MB / 1.449 GB, free: 39.26 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001327/2.343, allocations: 387.3 kB / 1.45 GB, free: 38.88 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/2.344, allocations: 95.44 kB / 1.45 GB, free: 38.79 MB / 0.9981 GB Notification: Performance of SimCode: time 1.313e-06/2.344, allocations: 0 / 1.45 GB, free: 38.79 MB / 0.9981 GB Notification: Performance of Templates: time 0.1361/2.48, allocations: 86.28 MB / 1.534 GB, free: 0.75 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches