Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001244/0.001244, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001248/0.001248, allocations: 191.8 kB / 16.14 MB, free: 6.734 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.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.761/2.761, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 66.53 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3456, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01585/0.3616, allocations: 13.96 MB / 1.066 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01344/0.375, allocations: 9.4 MB / 1.075 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.3767, allocations: 51.69 kB / 1.075 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004223/0.3809, allocations: 1.568 MB / 1.077 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005238/0.3862, allocations: 1.399 MB / 1.078 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.3884, allocations: 0.693 MB / 1.079 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00469/0.3931, allocations: 3.168 MB / 1.082 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002514/0.3956, allocations: 1.352 MB / 1.083 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.3977, allocations: 0.9416 MB / 1.084 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.3999, allocations: 1.14 MB / 1.085 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005184/0.4004, allocations: 100 kB / 1.085 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.4026, allocations: 0.8812 MB / 1.086 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0009009/0.4035, allocations: 0.5568 MB / 1.086 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.4053, allocations: 0.8703 MB / 1.087 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004134/0.4095, allocations: 2.718 MB / 1.09 GB, free: 1.906 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4095, allocations: 0 / 1.09 GB, free: 1.906 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.072e-06/0.4095, allocations: 3.938 kB / 1.09 GB, free: 1.902 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.792e-05/0.4096, allocations: 4 kB / 1.09 GB, free: 1.898 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004473/0.4141, allocations: 2.139 MB / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.4141, allocations: 12.03 kB / 1.092 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/0.4248, allocations: 2.085 MB / 1.094 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.4273, allocations: 1.193 MB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.334e-05/0.4274, allocations: 86.73 kB / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/0.4276, allocations: 120.1 kB / 1.096 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005399/0.433, allocations: 2.686 MB / 1.098 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.758e-05/0.4331, allocations: 7.844 kB / 1.098 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.4333, allocations: 55.98 kB / 1.098 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005733/0.4338, allocations: 178.1 kB / 1.098 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006818/0.4407, allocations: 2.799 MB / 1.101 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01465/0.4553, allocations: 10.5 MB / 1.111 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006221/0.4616, allocations: 2.529 MB / 1.114 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002873/0.4645, allocations: 1.273 MB / 1.115 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.636e-05/0.4646, allocations: 20.98 kB / 1.115 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.4646, allocations: 47.55 kB / 1.115 GB, free: 7.238 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.805e-06/0.4647, allocations: 0 / 1.115 GB, free: 7.238 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131): time 0.0449/0.5096, allocations: 13.35 MB / 1.128 GB, free: 9.668 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.5096, allocations: 64.72 kB / 1.128 GB, free: 9.594 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.5114, allocations: 1.113 MB / 1.129 GB, free: 8.465 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000196/0.5117, allocations: 57.7 kB / 1.129 GB, free: 8.402 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005564/0.5122, allocations: 0.7194 MB / 1.13 GB, free: 7.676 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005324/0.5128, allocations: 449.4 kB / 1.13 GB, free: 7.23 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000591/0.5134, allocations: 263.4 kB / 1.131 GB, free: 6.965 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5135, allocations: 357.9 kB / 1.131 GB, free: 6.609 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003172/0.5167, allocations: 1.343 MB / 1.132 GB, free: 5.266 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003377/0.5201, allocations: 1.6 MB / 1.134 GB, free: 3.566 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006599/0.5267, allocations: 2.991 MB / 1.137 GB, free: 492 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.5267, allocations: 4 kB / 1.137 GB, free: 488 kB / 0.8887 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01157/0.5383, allocations: 4.447 MB / 1.141 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.5384, allocations: 12.03 kB / 1.141 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.5384, allocations: 8 kB / 1.141 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005498/0.5439, allocations: 1.431 MB / 1.143 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00208/0.546, allocations: 443.2 kB / 1.143 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02752/0.5735, allocations: 24.56 MB / 1.167 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002776/0.5764, allocations: 299.5 kB / 1.167 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003615/0.5768, allocations: 63.97 kB / 1.167 GB, free: 15.39 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.001326/0.5781, allocations: 446 kB / 1.168 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000668/0.5788, allocations: 166 kB / 1.168 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/0.5909, allocations: 4.449 MB / 1.172 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/0.5909, allocations: 12 kB / 1.172 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.375e-05/0.591, allocations: 15.94 kB / 1.172 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/0.591, allocations: 8.156 kB / 1.172 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/0.6075, allocations: 6.766 MB / 1.179 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.6075, allocations: 7.938 kB / 1.179 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001883/0.6094, allocations: 379.7 kB / 1.179 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005316/0.6147, allocations: 1.31 MB / 1.181 GB, free: 1.578 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000264/0.615, allocations: 43.95 kB / 1.181 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02495/0.64, allocations: 23.5 MB / 1.204 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.64, allocations: 7.938 kB / 1.204 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/0.6509, allocations: 4.196 MB / 1.208 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.6519, allocations: 458.9 kB / 1.208 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004472/0.6524, allocations: 27.94 kB / 1.208 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002072/0.6545, allocations: 315.5 kB / 1.208 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004995/0.655, allocations: 124.7 kB / 1.209 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.6551, allocations: 51.95 kB / 1.209 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001246/0.6564, allocations: 0.7565 MB / 1.209 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of sort global known variables: time 4.21e-07/0.6564, allocations: 0 / 1.209 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002369/0.6588, allocations: 0.5664 MB / 1.21 GB, free: 1.688 MB / 0.9669 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.0003426/0.6591, allocations: 139.1 kB / 1.21 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01064/0.6698, allocations: 5.119 MB / 1.215 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.6698, allocations: 0 / 1.215 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.006727/0.6766, allocations: 3.491 MB / 1.218 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/0.6796, allocations: 0.5134 MB / 1.219 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009908/0.6895, allocations: 4.649 MB / 1.224 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/0.6913, allocations: 1.477 MB / 1.225 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002156/0.6935, allocations: 429.6 kB / 1.225 GB, free: 1.449 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/0.6941, allocations: 111.4 kB / 1.225 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of SimCode: time 8.62e-07/0.6941, allocations: 0 / 1.225 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of Templates: time 0.6927/1.387, allocations: 37.72 MB / 1.262 GB, free: 187.8 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches