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.001078/0.001078, allocations: 108 kB / 15.61 MB, free: 152 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.001565/0.001565, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.747/2.747, allocations: 437 MB / 0.7103 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 63.89 kB / 0.8692 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7392/0.7406, allocations: 151.6 MB / 1.017 GB, free: 2.559 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02598/0.7667, allocations: 23.42 MB / 1.04 GB, free: 11.06 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01238/0.7791, allocations: 6.488 MB / 1.046 GB, free: 4.555 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004669/0.7838, allocations: 95.5 kB / 1.047 GB, free: 4.461 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.005415/0.7893, allocations: 1.496 MB / 1.048 GB, free: 2.961 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005653/0.7949, allocations: 1.82 MB / 1.05 GB, free: 1.133 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00407/0.799, allocations: 1.472 MB / 1.051 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009256/0.8083, allocations: 6.92 MB / 1.058 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009065/0.8174, allocations: 6.998 MB / 1.065 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00455/0.822, allocations: 2.832 MB / 1.068 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005193/0.8272, allocations: 3.462 MB / 1.071 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001293/0.8286, allocations: 0.5312 MB / 1.072 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002853/0.8314, allocations: 1.182 MB / 1.073 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.002685/0.8341, allocations: 2.456 MB / 1.075 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.003499/0.8376, allocations: 2.54 MB / 1.078 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.009551/0.8472, allocations: 8.464 MB / 1.086 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.8473, allocations: 0 / 1.086 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.335e-06/0.8473, allocations: 0 / 1.086 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002653/0.8475, allocations: 0 / 1.086 GB, free: 12.1 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.01107/0.8586, allocations: 4.428 MB / 1.09 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.244e-05/0.8587, allocations: 8.031 kB / 1.09 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009006/0.8677, allocations: 1.689 MB / 1.092 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006618/0.8744, allocations: 2.567 MB / 1.094 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002846/0.8747, allocations: 275.7 kB / 1.095 GB, free: 3.012 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.8767, allocations: 364.3 kB / 1.095 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/0.8986, allocations: 7.487 MB / 1.102 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/0.8989, allocations: 19.78 kB / 1.102 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001505/0.9004, allocations: 159.9 kB / 1.102 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006694/0.9011, allocations: 487.3 kB / 1.103 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.913, allocations: 5.701 MB / 1.108 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04217/0.9552, allocations: 31.71 MB / 1.139 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.9586, allocations: 2.093 MB / 1.141 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003401/0.962, allocations: 2.171 MB / 1.144 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/0.9623, allocations: 21.3 kB / 1.144 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.9624, allocations: 55.81 kB / 1.144 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=146): time 5.821e-06/0.9624, allocations: 3.984 kB / 1.144 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of matching and sorting (n=251): time 0.324/1.286, allocations: 77 MB / 1.219 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/1.286, allocations: 77.41 kB / 1.219 GB, free: 468 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/1.29, allocations: 1.674 MB / 1.221 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0005626/1.29, allocations: 65.7 kB / 1.221 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001312/1.292, allocations: 1.743 MB / 1.222 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/1.293, allocations: 0.8548 MB / 1.223 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/1.295, allocations: 485.2 kB / 1.224 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.295, allocations: 301.1 kB / 1.224 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004166/1.299, allocations: 2.73 MB / 1.227 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004807/1.304, allocations: 3.332 MB / 1.23 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0093/1.313, allocations: 6.397 MB / 1.236 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/1.313, allocations: 7.938 kB / 1.236 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.7382/2.051, allocations: 14.67 MB / 1.25 GB, free: 208.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/2.051, allocations: 12.19 kB / 1.25 GB, free: 208.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.906e-05/2.051, allocations: 22.45 kB / 1.25 GB, free: 208.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03539/2.087, allocations: 9.299 MB / 1.259 GB, free: 208 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/2.088, allocations: 304.6 kB / 1.26 GB, free: 208 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07262/2.161, allocations: 52.38 MB / 1.311 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003337/2.164, allocations: 215.7 kB / 1.311 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002529/2.165, allocations: 107.9 kB / 1.311 GB, free: 180.5 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.002349/2.167, allocations: 1.58 MB / 1.313 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005147/2.168, allocations: 246.1 kB / 1.313 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02749/2.195, allocations: 14.76 MB / 1.327 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.198e-05/2.195, allocations: 24 kB / 1.327 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000104/2.195, allocations: 47.94 kB / 1.327 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.114e-05/2.195, allocations: 11.95 kB / 1.328 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03568/2.231, allocations: 20.51 MB / 1.348 GB, free: 143.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.864e-05/2.231, allocations: 8 kB / 1.348 GB, free: 143.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000913/2.232, allocations: 168.5 kB / 1.348 GB, free: 142.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02558/2.258, allocations: 9.06 MB / 1.357 GB, free: 133.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005348/2.258, allocations: 48 kB / 1.357 GB, free: 133.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06538/2.324, allocations: 51.96 MB / 1.407 GB, free: 81.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.433e-06/2.324, allocations: 19.88 kB / 1.407 GB, free: 81 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02746/2.351, allocations: 14.36 MB / 1.421 GB, free: 66.51 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/2.353, allocations: 0.8493 MB / 1.422 GB, free: 65.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005886/2.354, allocations: 54.05 kB / 1.422 GB, free: 65.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/2.356, allocations: 211.7 kB / 1.422 GB, free: 65.38 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/2.358, allocations: 237.5 kB / 1.423 GB, free: 65.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001967/2.358, allocations: 64 kB / 1.423 GB, free: 65.08 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001418/2.359, allocations: 1.125 MB / 1.424 GB, free: 63.93 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/2.359, allocations: 4 kB / 1.424 GB, free: 63.93 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005061/2.364, allocations: 1.617 MB / 1.425 GB, free: 62.31 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.0004039/2.365, allocations: 157.7 kB / 1.426 GB, free: 62.15 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02214/2.387, allocations: 11.34 MB / 1.437 GB, free: 50.79 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/2.387, allocations: 4 kB / 1.437 GB, free: 50.78 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01657/2.404, allocations: 7.304 MB / 1.444 GB, free: 43.43 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/2.407, allocations: 0.5429 MB / 1.444 GB, free: 42.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/2.421, allocations: 8.782 MB / 1.453 GB, free: 34.05 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003042/2.424, allocations: 3.224 MB / 1.456 GB, free: 30.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001142/2.426, allocations: 399.3 kB / 1.456 GB, free: 30.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/2.426, allocations: 95.44 kB / 1.457 GB, free: 30.31 MB / 0.9981 GB Notification: Performance of SimCode: time 1.673e-06/2.426, allocations: 4.156 kB / 1.457 GB, free: 30.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.1424/2.568, allocations: 91.84 MB / 1.546 GB, free: 2.75 MB / 1.061 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