Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 100.1 kB / 15.88 MB, free: 12 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.001859/0.001859, allocations: 200.7 kB / 16.79 MB, free: 6.809 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.352/1.352, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.2 MB / 0.6649 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5705/0.572, allocations: 140.4 MB / 0.9496 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03416/0.6062, allocations: 34.8 MB / 0.9836 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01564/0.6219, allocations: 9.921 MB / 0.9933 GB, free: 5.293 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003309/0.6252, allocations: 131.3 kB / 0.9934 GB, free: 5.164 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.008876/0.6341, allocations: 3.546 MB / 0.9969 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005598/0.6397, allocations: 1.921 MB / 0.9987 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.004867/0.6446, allocations: 1.784 MB / 1 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01156/0.6562, allocations: 11.2 MB / 1.011 GB, free: 2.68 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01702/0.6733, allocations: 10.7 MB / 1.022 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005259/0.6786, allocations: 2.872 MB / 1.025 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005957/0.6845, allocations: 3.804 MB / 1.028 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001814/0.6864, allocations: 468 kB / 1.029 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003794/0.6902, allocations: 1.439 MB / 1.03 GB, free: 15.26 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.003519/0.6937, allocations: 2.397 MB / 1.033 GB, free: 12.86 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.005409/0.6991, allocations: 2.847 MB / 1.035 GB, free: 10 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.009182/0.7083, allocations: 8.792 MB / 1.044 GB, free: 1.188 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.7084, allocations: 4 kB / 1.044 GB, free: 1.184 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7084, allocations: 4 kB / 1.044 GB, free: 1.18 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003361/0.7087, allocations: 0 / 1.044 GB, free: 1.18 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01338/0.7221, allocations: 5.397 MB / 1.049 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.7222, allocations: 12.03 kB / 1.049 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/0.7275, allocations: 0.9587 MB / 1.05 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005969/0.7335, allocations: 2.995 MB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/0.7339, allocations: 353.9 kB / 1.053 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.7353, allocations: 476.2 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01637/0.7517, allocations: 7.91 MB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001808/0.7519, allocations: 19.86 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001186/0.7531, allocations: 208 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005592/0.7536, allocations: 365 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/0.7654, allocations: 5.941 MB / 1.068 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04197/0.8074, allocations: 36.21 MB / 1.103 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.8111, allocations: 2.138 MB / 1.105 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002097/0.8132, allocations: 1.48 MB / 1.107 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.8133, allocations: 21.31 kB / 1.107 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.8134, allocations: 59.81 kB / 1.107 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=157): time 4.488e-06/0.8134, allocations: 0 / 1.107 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=160): time 0.01403/0.8274, allocations: 7.54 MB / 1.114 GB, free: 5.082 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.8275, allocations: 68.72 kB / 1.114 GB, free: 5 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.8303, allocations: 1.864 MB / 1.116 GB, free: 3.109 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.8305, allocations: 53.7 kB / 1.116 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.8318, allocations: 2.123 MB / 1.118 GB, free: 0.9023 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005361/0.8324, allocations: 0.5507 MB / 1.119 GB, free: 352 kB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007239/0.8331, allocations: 403.7 kB / 1.119 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.8332, allocations: 313.1 kB / 1.12 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.8349, allocations: 1.062 MB / 1.121 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.837, allocations: 1.76 MB / 1.122 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/0.841, allocations: 3.049 MB / 1.125 GB, free: 9.129 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.8411, allocations: 8 kB / 1.125 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006798/0.8479, allocations: 3.925 MB / 1.129 GB, free: 5.148 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.8479, allocations: 16 kB / 1.129 GB, free: 5.133 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/0.848, allocations: 20 kB / 1.129 GB, free: 5.113 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/0.8505, allocations: 0.9313 MB / 1.13 GB, free: 4.145 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.8521, allocations: 427.3 kB / 1.13 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/0.872, allocations: 21.05 MB / 1.151 GB, free: 13.08 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.8742, allocations: 131.8 kB / 1.151 GB, free: 12.95 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/0.8746, allocations: 96.55 kB / 1.151 GB, free: 12.86 MB / 0.92 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 (227): * Single equations (assignments): 215 * 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,6,100.0%), (2,6,100.0%), (2,6,100.0%), (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.003043/0.8777, allocations: 1.645 MB / 1.153 GB, free: 11.2 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007066/0.8784, allocations: 253 kB / 1.153 GB, free: 10.95 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005843/0.8842, allocations: 3.267 MB / 1.156 GB, free: 7.629 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.8843, allocations: 16 kB / 1.156 GB, free: 7.613 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.772e-05/0.8843, allocations: 8 kB / 1.156 GB, free: 7.605 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-05/0.8843, allocations: 15.91 kB / 1.156 GB, free: 7.59 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.8982, allocations: 7.541 MB / 1.164 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.8983, allocations: 8 kB / 1.164 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009328/0.8992, allocations: 212.2 kB / 1.164 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002517/0.9017, allocations: 0.896 MB / 1.165 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/0.9019, allocations: 36 kB / 1.165 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01975/0.9217, allocations: 21.01 MB / 1.185 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.9217, allocations: 7.938 kB / 1.185 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005925/0.9277, allocations: 3.375 MB / 1.189 GB, free: 4.594 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.9289, allocations: 0.5293 MB / 1.189 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005597/0.9295, allocations: 39.98 kB / 1.189 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.9307, allocations: 95.89 kB / 1.189 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004039/0.9312, allocations: 144.9 kB / 1.189 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.9313, allocations: 43.94 kB / 1.189 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001723/0.933, allocations: 1.225 MB / 1.191 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.933, allocations: 0 / 1.191 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003013/0.936, allocations: 0.9062 MB / 1.192 GB, free: 1.582 MB / 0.9512 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 (109): * Single equations (assignments): 97 * 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,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,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002851/0.9363, allocations: 164.3 kB / 1.192 GB, free: 1.41 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006533/0.9429, allocations: 4.413 MB / 1.196 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.9429, allocations: 4.25 kB / 1.196 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.004354/0.9473, allocations: 2.995 MB / 1.199 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003741/0.951, allocations: 0.7578 MB / 1.2 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.9666, allocations: 10.33 MB / 1.21 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004047/0.9707, allocations: 3.291 MB / 1.213 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007157/0.9715, allocations: 151.4 kB / 1.213 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of SimCode: time 6.41e-07/0.9715, allocations: 0 / 1.213 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of Templates: time 0.6638/1.635, allocations: 339.6 MB / 1.545 GB, free: 5.52 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches