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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001547/0.001547, allocations: 109.8 kB / 16.41 MB, free: 6.035 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.00164/0.00164, allocations: 183.7 kB / 17.34 MB, free: 5.633 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.469/1.469, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.207/2.207, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9798/0.9812, allocations: 140.4 MB / 1.089 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01788/0.9991, allocations: 14.04 MB / 1.102 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01699/1.016, allocations: 9.378 MB / 1.111 GB, free: 5.75 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/1.019, allocations: 58.78 kB / 1.112 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.005126/1.024, allocations: 1.674 MB / 1.113 GB, free: 4.715 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006203/1.03, allocations: 1.543 MB / 1.115 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002885/1.033, allocations: 0.7608 MB / 1.115 GB, free: 3.402 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005262/1.038, allocations: 2.52 MB / 1.118 GB, free: 2.227 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/1.041, allocations: 1.412 MB / 1.119 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/1.044, allocations: 1.081 MB / 1.12 GB, free: 1.105 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/1.047, allocations: 1.135 MB / 1.121 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005213/1.047, allocations: 165 kB / 1.122 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/1.05, allocations: 0.789 MB / 1.122 GB, free: 400 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009968/1.051, allocations: 0.6163 MB / 1.123 GB, free: 108 kB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001955/1.053, allocations: 0.9468 MB / 1.124 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005721/1.058, allocations: 2.758 MB / 1.127 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/1.058, allocations: 0.6562 kB / 1.127 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.355e-06/1.058, allocations: 0 / 1.127 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.867e-05/1.058, allocations: 0 / 1.127 GB, free: 14.57 MB / 0.8887 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.006514/1.065, allocations: 2.14 MB / 1.129 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/1.065, allocations: 9.531 kB / 1.129 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/1.077, allocations: 2.086 MB / 1.131 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/1.081, allocations: 1.29 MB / 1.132 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.782e-05/1.081, allocations: 89.58 kB / 1.132 GB, free: 12.37 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004218/1.081, allocations: 125.7 kB / 1.132 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006699/1.088, allocations: 2.674 MB / 1.135 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/1.088, allocations: 7.859 kB / 1.135 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/1.088, allocations: 55.38 kB / 1.135 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006469/1.089, allocations: 184 kB / 1.135 GB, free: 11.19 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008077/1.097, allocations: 2.793 MB / 1.138 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01733/1.114, allocations: 10.47 MB / 1.148 GB, free: 2.621 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006296/1.121, allocations: 2.519 MB / 1.15 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003113/1.124, allocations: 1.288 MB / 1.152 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.86e-05/1.124, allocations: 13.22 kB / 1.152 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/1.124, allocations: 44.59 kB / 1.152 GB, free: 476 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.447e-06/1.124, allocations: 0 / 1.152 GB, free: 476 kB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.04537/1.169, allocations: 13.37 MB / 1.165 GB, free: 9.535 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/1.17, allocations: 70.02 kB / 1.165 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/1.171, allocations: 1.113 MB / 1.166 GB, free: 8.855 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0003201/1.172, allocations: 51.3 kB / 1.166 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005685/1.172, allocations: 0.7146 MB / 1.167 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005395/1.173, allocations: 455.1 kB / 1.167 GB, free: 7.773 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00054/1.173, allocations: 262.7 kB / 1.167 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001999/1.174, allocations: 364.1 kB / 1.168 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003132/1.177, allocations: 1.342 MB / 1.169 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003397/1.18, allocations: 1.603 MB / 1.171 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006822/1.187, allocations: 2.991 MB / 1.174 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/1.187, allocations: 2.281 kB / 1.174 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01164/1.199, allocations: 4.442 MB / 1.178 GB, free: 1.414 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/1.199, allocations: 15.61 kB / 1.178 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/1.199, allocations: 8 kB / 1.178 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005554/1.204, allocations: 1.434 MB / 1.179 GB, free: 15.99 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/1.207, allocations: 439.2 kB / 1.18 GB, free: 15.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02981/1.236, allocations: 26.66 MB / 1.206 GB, free: 3.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/1.24, allocations: 311.6 kB / 1.206 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004521/1.24, allocations: 63.91 kB / 1.206 GB, free: 2.707 MB / 0.9356 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.001354/1.241, allocations: 441.4 kB / 1.207 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005668/1.242, allocations: 162 kB / 1.207 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/1.254, allocations: 4.453 MB / 1.211 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.254, allocations: 15.98 kB / 1.211 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.814e-05/1.254, allocations: 12 kB / 1.211 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/1.254, allocations: 11.97 kB / 1.211 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/1.27, allocations: 6.756 MB / 1.218 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/1.27, allocations: 4 kB / 1.218 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.272, allocations: 383.6 kB / 1.218 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004931/1.277, allocations: 1.31 MB / 1.219 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/1.277, allocations: 43.95 kB / 1.219 GB, free: 4.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02717/1.304, allocations: 25.49 MB / 1.244 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.304, allocations: 3.938 kB / 1.244 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/1.316, allocations: 4.206 MB / 1.248 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/1.317, allocations: 458.9 kB / 1.249 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000652/1.318, allocations: 24 kB / 1.249 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002416/1.32, allocations: 311.5 kB / 1.249 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004874/1.321, allocations: 120.7 kB / 1.249 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/1.321, allocations: 51.97 kB / 1.249 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001354/1.322, allocations: 0.7526 MB / 1.25 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/1.322, allocations: 0 / 1.25 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002924/1.325, allocations: 0.5664 MB / 1.251 GB, free: 2.945 MB / 0.9825 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.0003847/1.326, allocations: 147.1 kB / 1.251 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01122/1.337, allocations: 5.134 MB / 1.256 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/1.337, allocations: 4 kB / 1.256 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007401/1.344, allocations: 3.491 MB / 1.259 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/1.348, allocations: 0.5471 MB / 1.26 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.359, allocations: 4.107 MB / 1.264 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/1.36, allocations: 1.477 MB / 1.265 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000737/1.361, allocations: 139.3 kB / 1.265 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of SimCode: time 1.212e-06/1.361, allocations: 0 / 1.265 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of Templates: time 0.1191/1.48, allocations: 112.6 MB / 1.375 GB, free: 2.879 MB / 1.107 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 -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