Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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,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") 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_10_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.009324/0.009324, allocations: 95.7 kB / 15.73 MB, free: 6.039 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.002147/0.002147, allocations: 202.8 kB / 16.68 MB, free: 5.969 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.55/1.55, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.931/2.931, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.88 kB / 1.019 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3602, allocations: 151.6 MB / 1.167 GB, free: 6.914 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01671/0.3769, allocations: 14.04 MB / 1.18 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01461/0.3916, allocations: 9.396 MB / 1.19 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.3932, allocations: 51.69 kB / 1.19 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004746/0.3981, allocations: 1.68 MB / 1.191 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005585/0.4037, allocations: 1.565 MB / 1.193 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002463/0.4061, allocations: 0.7601 MB / 1.193 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0041/0.4103, allocations: 2.52 MB / 1.196 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.4128, allocations: 1.422 MB / 1.197 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.4148, allocations: 1.067 MB / 1.198 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002226/0.4171, allocations: 1.144 MB / 1.199 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0005584/0.4176, allocations: 172 kB / 1.2 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002028/0.4197, allocations: 0.7877 MB / 1.2 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0008946/0.4206, allocations: 0.6193 MB / 1.201 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001816/0.4224, allocations: 0.9406 MB / 1.202 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.004833/0.4273, allocations: 2.759 MB / 1.205 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.4273, allocations: 4 kB / 1.205 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.305e-06/0.4273, allocations: 0 / 1.205 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.213e-05/0.4274, allocations: 0 / 1.205 GB, free: 15.82 MB / 0.9669 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.004452/0.4318, allocations: 2.195 MB / 1.207 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4319, allocations: 8.031 kB / 1.207 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/0.4427, allocations: 2.094 MB / 1.209 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002836/0.4455, allocations: 1.299 MB / 1.21 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.4456, allocations: 94.72 kB / 1.21 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.4459, allocations: 120.1 kB / 1.21 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005661/0.4515, allocations: 2.679 MB / 1.213 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.675e-05/0.4516, allocations: 7.938 kB / 1.213 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/0.4518, allocations: 55.98 kB / 1.213 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005927/0.4524, allocations: 178.1 kB / 1.213 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007338/0.4597, allocations: 2.803 MB / 1.216 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.4757, allocations: 10.49 MB / 1.226 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006562/0.4823, allocations: 2.519 MB / 1.229 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003054/0.4854, allocations: 1.287 MB / 1.23 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.181e-05/0.4855, allocations: 12.98 kB / 1.23 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.4855, allocations: 51.55 kB / 1.23 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 3.086e-06/0.4855, allocations: 0 / 1.23 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of matching and sorting (n=131): time 0.04581/0.5314, allocations: 13.38 MB / 1.243 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.5315, allocations: 64.72 kB / 1.243 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.5334, allocations: 1.121 MB / 1.244 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.5336, allocations: 49.64 kB / 1.244 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006287/0.5342, allocations: 0.7326 MB / 1.245 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005904/0.5348, allocations: 475.9 kB / 1.245 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005969/0.5354, allocations: 259.5 kB / 1.246 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001818/0.5356, allocations: 369.9 kB / 1.246 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/0.5388, allocations: 1.343 MB / 1.247 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003402/0.5423, allocations: 1.6 MB / 1.249 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8343/1.377, allocations: 2.981 MB / 1.252 GB, free: 77.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/1.377, allocations: 1.906 kB / 1.252 GB, free: 77.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01399/1.391, allocations: 4.448 MB / 1.256 GB, free: 76.58 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/1.391, allocations: 7.969 kB / 1.256 GB, free: 76.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/1.391, allocations: 8.719 kB / 1.256 GB, free: 76.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006056/1.397, allocations: 1.432 MB / 1.257 GB, free: 76.22 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/1.399, allocations: 436.9 kB / 1.258 GB, free: 76.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02536/1.424, allocations: 26.71 MB / 1.284 GB, free: 54.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/1.428, allocations: 300.3 kB / 1.284 GB, free: 54.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/1.428, allocations: 63.66 kB / 1.284 GB, free: 54.22 MB / 0.9981 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.0009441/1.429, allocations: 442 kB / 1.285 GB, free: 53.95 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/1.429, allocations: 169.1 kB / 1.285 GB, free: 53.86 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.441, allocations: 4.461 MB / 1.289 GB, free: 52.37 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/1.441, allocations: 14.45 kB / 1.289 GB, free: 52.37 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.044e-05/1.441, allocations: 12.28 kB / 1.289 GB, free: 52.37 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.526e-05/1.441, allocations: 6.797 kB / 1.289 GB, free: 52.37 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/1.458, allocations: 6.761 MB / 1.296 GB, free: 49.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.458, allocations: 2.781 kB / 1.296 GB, free: 49.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001873/1.46, allocations: 388.8 kB / 1.296 GB, free: 49.82 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004973/1.465, allocations: 1.304 MB / 1.298 GB, free: 49.46 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000243/1.465, allocations: 41.23 kB / 1.298 GB, free: 49.44 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02166/1.487, allocations: 25.51 MB / 1.322 GB, free: 27.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.487, allocations: 3.188 kB / 1.322 GB, free: 27.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/1.497, allocations: 4.21 MB / 1.327 GB, free: 26.42 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/1.499, allocations: 467.9 kB / 1.327 GB, free: 26.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003157/1.499, allocations: 27.59 kB / 1.327 GB, free: 26.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001988/1.501, allocations: 304.3 kB / 1.327 GB, free: 26.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006907/1.502, allocations: 129 kB / 1.327 GB, free: 26.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/1.502, allocations: 48.11 kB / 1.328 GB, free: 26.06 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001182/1.503, allocations: 0.7541 MB / 1.328 GB, free: 25.64 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.503, allocations: 0 / 1.328 GB, free: 25.64 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002884/1.506, allocations: 0.5693 MB / 1.329 GB, free: 25.59 MB / 0.9981 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.0003531/1.506, allocations: 146.8 kB / 1.329 GB, free: 25.47 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01081/1.517, allocations: 5.148 MB / 1.334 GB, free: 22.07 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.517, allocations: 1.062 kB / 1.334 GB, free: 22.07 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006951/1.524, allocations: 3.498 MB / 1.337 GB, free: 19.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/1.527, allocations: 0.5496 MB / 1.338 GB, free: 19.23 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008548/1.536, allocations: 4.047 MB / 1.342 GB, free: 16.89 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001284/1.537, allocations: 1.478 MB / 1.343 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001797/1.539, allocations: 422 kB / 1.344 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/1.539, allocations: 114 kB / 1.344 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of SimCode: time 6.62e-07/1.539, allocations: 0 / 1.344 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of Templates: time 0.06521/1.604, allocations: 39.36 MB / 1.382 GB, free: 12.47 MB / 1.029 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches