Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001641/0.001641, allocations: 191 kB / 17.29 MB, free: 5.516 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.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.209/2.209, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 61.48 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3005, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01679/0.3174, allocations: 14.04 MB / 0.9648 GB, free: 9.977 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01488/0.3323, allocations: 9.396 MB / 0.974 GB, free: 0.5508 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.3345, allocations: 55.62 kB / 0.9741 GB, free: 0.4961 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.005128/0.3398, allocations: 1.665 MB / 0.9757 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.006411/0.3462, allocations: 1.553 MB / 0.9772 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.3486, allocations: 0.7635 MB / 0.978 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004063/0.3526, allocations: 2.512 MB / 0.9804 GB, free: 9.984 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.3546, allocations: 1.403 MB / 0.9818 GB, free: 8.547 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.3563, allocations: 1.051 MB / 0.9828 GB, free: 7.492 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.3579, allocations: 1.136 MB / 0.9839 GB, free: 6.352 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.3582, allocations: 168 kB / 0.9841 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.3598, allocations: 0.7916 MB / 0.9849 GB, free: 5.395 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0006005/0.3604, allocations: 0.6232 MB / 0.9855 GB, free: 4.77 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.3615, allocations: 0.9406 MB / 0.9864 GB, free: 3.824 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003156/0.3647, allocations: 2.753 MB / 0.9891 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3647, allocations: 0 / 0.9891 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3647, allocations: 0 / 0.9891 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.074e-05/0.3648, allocations: 0 / 0.9891 GB, free: 1.062 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003974/0.3687, allocations: 2.139 MB / 0.9912 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3688, allocations: 12.03 kB / 0.9912 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01049/0.3793, allocations: 2.085 MB / 0.9932 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003153/0.3825, allocations: 1.29 MB / 0.9945 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-05/0.3826, allocations: 90.73 kB / 0.9945 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002529/0.3828, allocations: 120.1 kB / 0.9947 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00538/0.3882, allocations: 2.675 MB / 0.9973 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.423e-05/0.3883, allocations: 15.83 kB / 0.9973 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.3884, allocations: 59.92 kB / 0.9973 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005605/0.389, allocations: 178.1 kB / 0.9975 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006887/0.3959, allocations: 2.795 MB / 1 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.4122, allocations: 10.46 MB / 1.01 GB, free: 10.29 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006345/0.4186, allocations: 2.526 MB / 1.013 GB, free: 7.699 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003026/0.4217, allocations: 1.285 MB / 1.014 GB, free: 6.41 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.4218, allocations: 9 kB / 1.014 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/0.4219, allocations: 43.56 kB / 1.014 GB, free: 6.352 MB / 0.795 GB Notification: Performance of pre-optimization done (n=89): time 3.527e-06/0.4219, allocations: 4 kB / 1.014 GB, free: 6.348 MB / 0.795 GB Notification: Performance of matching and sorting (n=131): time 0.04755/0.4694, allocations: 13.35 MB / 1.027 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/0.4696, allocations: 68.66 kB / 1.027 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002941/0.4725, allocations: 1.121 MB / 1.028 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0002347/0.4728, allocations: 45.7 kB / 1.028 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008279/0.4736, allocations: 0.7155 MB / 1.029 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007037/0.4744, allocations: 457.4 kB / 1.03 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009353/0.4753, allocations: 259.5 kB / 1.03 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002861/0.4756, allocations: 369.8 kB / 1.03 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004948/0.4806, allocations: 1.339 MB / 1.032 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005801/0.4864, allocations: 1.6 MB / 1.033 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008513/0.4949, allocations: 2.987 MB / 1.036 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.495, allocations: 4 kB / 1.036 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01288/0.5078, allocations: 4.443 MB / 1.04 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.5079, allocations: 10.19 kB / 1.04 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/0.508, allocations: 12.05 kB / 1.04 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007022/0.515, allocations: 1.435 MB / 1.042 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/0.5178, allocations: 439.2 kB / 1.042 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03765/0.5555, allocations: 26.67 MB / 1.068 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/0.5594, allocations: 311.5 kB / 1.069 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004558/0.5599, allocations: 67.91 kB / 1.069 GB, free: 12.28 MB / 0.8575 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.5614, allocations: 443.4 kB / 1.069 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006451/0.5621, allocations: 158.1 kB / 1.069 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01634/0.5784, allocations: 4.453 MB / 1.074 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/0.5785, allocations: 12 kB / 1.074 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-05/0.5786, allocations: 12 kB / 1.074 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/0.5786, allocations: 15.91 kB / 1.074 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/0.5972, allocations: 6.767 MB / 1.08 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.511e-05/0.5973, allocations: 4.344 kB / 1.08 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.578/1.175, allocations: 380.3 kB / 1.081 GB, free: 123.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005463/1.181, allocations: 1.306 MB / 1.082 GB, free: 123.3 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/1.181, allocations: 39.58 kB / 1.082 GB, free: 123.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02408/1.205, allocations: 25.49 MB / 1.107 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/1.205, allocations: 8.312 kB / 1.107 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/1.217, allocations: 4.206 MB / 1.111 GB, free: 102.5 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/1.218, allocations: 460.4 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/1.218, allocations: 25.78 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/1.22, allocations: 304.4 kB / 1.112 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006244/1.221, allocations: 125.1 kB / 1.112 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.221, allocations: 48.3 kB / 1.112 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001168/1.222, allocations: 0.7538 MB / 1.113 GB, free: 101.9 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/1.222, allocations: 0 / 1.113 GB, free: 101.9 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002323/1.225, allocations: 0.572 MB / 1.113 GB, free: 101.8 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003029/1.225, allocations: 147 kB / 1.113 GB, free: 101.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.236, allocations: 5.134 MB / 1.118 GB, free: 99.21 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.236, allocations: 0 / 1.118 GB, free: 99.21 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.007444/1.243, allocations: 3.484 MB / 1.122 GB, free: 97.16 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/1.246, allocations: 0.5522 MB / 1.122 GB, free: 97.01 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009085/1.255, allocations: 3.987 MB / 1.126 GB, free: 95.4 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/1.257, allocations: 1.475 MB / 1.127 GB, free: 94.61 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001802/1.259, allocations: 423.3 kB / 1.128 GB, free: 94.48 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/1.259, allocations: 121.5 kB / 1.128 GB, free: 94.46 MB / 0.8575 GB Notification: Performance of SimCode: time 1.282e-06/1.259, allocations: 0 / 1.128 GB, free: 94.46 MB / 0.8575 GB Notification: Performance of Templates: time 0.0634/1.323, allocations: 38.95 MB / 1.166 GB, free: 71.9 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches