Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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.001365/0.001364, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001568/0.001569, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.815/2.815, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.91 kB / 0.8685 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.632/0.6333, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.00862/0.642, allocations: 6.157 MB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005348/0.6473, allocations: 3.204 MB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000531/0.6479, allocations: 31.81 kB / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00224/0.6502, allocations: 0.863 MB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001319/0.6515, allocations: 446 kB / 1.027 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.6528, allocations: 455.1 kB / 1.027 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001951/0.6548, allocations: 1.474 MB / 1.029 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.656, allocations: 0.6281 MB / 1.03 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008153/0.6568, allocations: 390.3 kB / 1.03 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006844/0.6575, allocations: 482.1 kB / 1.03 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.306e-05/0.6576, allocations: 44 kB / 1.03 GB, free: 4.613 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001179/0.6588, allocations: 0.5769 MB / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.6591, allocations: 275.2 kB / 1.031 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.6596, allocations: 382 kB / 1.032 GB, free: 3.391 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001399/0.661, allocations: 1.191 MB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.661, allocations: 0 / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.81e-07/0.661, allocations: 0 / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.6611, allocations: 0 / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001708/0.6628, allocations: 1.06 MB / 1.034 GB, free: 1.086 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.6628, allocations: 12.02 kB / 1.034 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001561/0.6644, allocations: 219.7 kB / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008109/0.6652, allocations: 0.5453 MB / 1.035 GB, free: 276 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/0.6653, allocations: 53.59 kB / 1.035 GB, free: 224 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.6654, allocations: 68.38 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.6668, allocations: 1.03 MB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.6668, allocations: 11.94 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.545e-05/0.6669, allocations: 27.98 kB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.852e-05/0.667, allocations: 73.27 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009927/0.668, allocations: 0.6879 MB / 1.036 GB, free: 14.21 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005798/0.6738, allocations: 5.753 MB / 1.042 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008212/0.6746, allocations: 0.5982 MB / 1.043 GB, free: 7.391 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007636/0.6754, allocations: 417.7 kB / 1.043 GB, free: 6.98 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.6755, allocations: 4.688 kB / 1.043 GB, free: 6.977 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.6755, allocations: 34.56 kB / 1.043 GB, free: 6.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 3.567e-06/0.6755, allocations: 0 / 1.043 GB, free: 6.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.004855/0.6804, allocations: 2.064 MB / 1.045 GB, free: 4.773 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.6804, allocations: 59.41 kB / 1.045 GB, free: 4.703 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007644/0.6812, allocations: 466.8 kB / 1.046 GB, free: 4.234 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.6813, allocations: 29.7 kB / 1.046 GB, free: 4.199 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.6816, allocations: 387 kB / 1.046 GB, free: 3.816 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.6818, allocations: 149.9 kB / 1.046 GB, free: 3.668 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.682, allocations: 114.2 kB / 1.046 GB, free: 3.551 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002167/0.6822, allocations: 366.8 kB / 1.047 GB, free: 3.184 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/0.6827, allocations: 245.2 kB / 1.047 GB, free: 2.945 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008257/0.6835, allocations: 453.6 kB / 1.047 GB, free: 2.406 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.6848, allocations: 0.7634 MB / 1.048 GB, free: 1.547 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.6848, allocations: 3.938 kB / 1.048 GB, free: 1.543 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002196/0.687, allocations: 1.066 MB / 1.049 GB, free: 468 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.687, allocations: 8 kB / 1.049 GB, free: 460 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.687, allocations: 12.06 kB / 1.049 GB, free: 448 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.6882, allocations: 331.1 kB / 1.049 GB, free: 104 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.6886, allocations: 91.89 kB / 1.049 GB, free: 12 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008629/0.6972, allocations: 6.954 MB / 1.056 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/0.6977, allocations: 36.2 kB / 1.056 GB, free: 8.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.6978, allocations: 28 kB / 1.056 GB, free: 8.457 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004268/0.6982, allocations: 245.5 kB / 1.057 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.813e-05/0.6983, allocations: 59.34 kB / 1.057 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.7, allocations: 0.9198 MB / 1.058 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.7, allocations: 4.281 kB / 1.058 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.7001, allocations: 4 kB / 1.058 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.7001, allocations: 0 / 1.058 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.7027, allocations: 1.723 MB / 1.059 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.7027, allocations: 0 / 1.059 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.7029, allocations: 43.91 kB / 1.059 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009635/0.7039, allocations: 327.2 kB / 1.06 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.7039, allocations: 8 kB / 1.06 GB, free: 5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007309/0.7112, allocations: 6.935 MB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7113, allocations: 4 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.713, allocations: 1.015 MB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.7133, allocations: 176.4 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.7134, allocations: 8 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.7136, allocations: 23.97 kB / 1.068 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.7138, allocations: 35.89 kB / 1.068 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.838e-05/0.7138, allocations: 23.94 kB / 1.068 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003418/0.7142, allocations: 310.9 kB / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7142, allocations: 288 / 1.068 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0007697/0.7149, allocations: 196 kB / 1.068 GB, free: 11.69 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001527/0.7151, allocations: 115.2 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001858/0.717, allocations: 1.199 MB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.717, allocations: 0 / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.7181, allocations: 0.8618 MB / 1.07 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009713/0.7191, allocations: 185.2 kB / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.7215, allocations: 1.541 MB / 1.072 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.7221, allocations: 0.996 MB / 1.073 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003356/0.7224, allocations: 97.3 kB / 1.073 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.27e-05/0.7225, allocations: 35.44 kB / 1.073 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of SimCode: time 6.91e-07/0.7225, allocations: 0 / 1.073 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of Templates: time 0.01719/0.7397, allocations: 9.638 MB / 1.082 GB, free: 12.95 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches