Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,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.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 113.3 kB / 16.41 MB, free: 6.5 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.001922/0.001922, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.553/1.553, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.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.782/2.782, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 68.11 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9249/0.9268, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02/0.9469, allocations: 14.8 MB / 1.182 GB, free: 5.023 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01691/0.9638, allocations: 10.35 MB / 1.192 GB, free: 10.63 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.9655, allocations: 59.62 kB / 1.192 GB, free: 10.57 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004732/0.9702, allocations: 1.699 MB / 1.194 GB, free: 8.871 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005896/0.9762, allocations: 1.844 MB / 1.195 GB, free: 7.031 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.9784, allocations: 0.7615 MB / 1.196 GB, free: 6.27 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004144/0.9825, allocations: 2.752 MB / 1.199 GB, free: 3.508 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002203/0.9847, allocations: 1.423 MB / 1.2 GB, free: 2.051 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.9873, allocations: 1.535 MB / 1.202 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.989, allocations: 1.152 MB / 1.203 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002469/0.9892, allocations: 164 kB / 1.203 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.9908, allocations: 0.7838 MB / 1.204 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0006995/0.9915, allocations: 0.6154 MB / 1.204 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.9926, allocations: 0.9561 MB / 1.205 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.9961, allocations: 2.771 MB / 1.208 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.9962, allocations: 0 / 1.208 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9962, allocations: 0 / 1.208 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.615e-05/0.9962, allocations: 4 kB / 1.208 GB, free: 10.05 MB / 0.9356 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.004375/1.001, allocations: 2.23 MB / 1.21 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.001, allocations: 8.922 kB / 1.21 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/1.013, allocations: 2.117 MB / 1.212 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003596/1.016, allocations: 1.32 MB / 1.214 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.428e-05/1.016, allocations: 86.69 kB / 1.214 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/1.017, allocations: 120.1 kB / 1.214 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00644/1.023, allocations: 2.67 MB / 1.216 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.87e-05/1.023, allocations: 11.89 kB / 1.216 GB, free: 1.219 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002169/1.023, allocations: 55.92 kB / 1.216 GB, free: 1.164 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007/1.024, allocations: 194.1 kB / 1.217 GB, free: 0.9727 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008056/1.032, allocations: 2.791 MB / 1.219 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/1.051, allocations: 10.48 MB / 1.23 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007157/1.059, allocations: 2.332 MB / 1.232 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003484/1.062, allocations: 1.276 MB / 1.233 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.956e-05/1.062, allocations: 9 kB / 1.233 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/1.062, allocations: 43.56 kB / 1.233 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=89): time 3.186e-06/1.062, allocations: 4 kB / 1.233 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=153): time 0.06385/1.126, allocations: 16.52 MB / 1.249 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/1.126, allocations: 72.7 kB / 1.249 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/1.128, allocations: 1.176 MB / 1.25 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002802/1.129, allocations: 49.7 kB / 1.251 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006958/1.129, allocations: 0.7607 MB / 1.251 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006347/1.13, allocations: 0.5344 MB / 1.252 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006199/1.13, allocations: 287.5 kB / 1.252 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.131, allocations: 309.1 kB / 1.252 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/1.135, allocations: 1.514 MB / 1.254 GB, free: 10 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004146/1.139, allocations: 1.78 MB / 1.256 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008223/1.147, allocations: 3.369 MB / 1.259 GB, free: 4.66 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/1.147, allocations: 3.938 kB / 1.259 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01483/1.162, allocations: 5.289 MB / 1.264 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/1.162, allocations: 8 kB / 1.264 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/1.162, allocations: 11.94 kB / 1.264 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007798/1.17, allocations: 1.873 MB / 1.266 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002232/1.172, allocations: 419.2 kB / 1.266 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03676/1.209, allocations: 24.15 MB / 1.29 GB, free: 3.75 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/1.212, allocations: 307.5 kB / 1.29 GB, free: 3.449 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002546/1.212, allocations: 63.97 kB / 1.29 GB, free: 3.387 MB / 1.014 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001002/1.213, allocations: 473.4 kB / 1.291 GB, free: 2.914 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/1.213, allocations: 186.9 kB / 1.291 GB, free: 2.73 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/1.229, allocations: 5.328 MB / 1.296 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/1.229, allocations: 16 kB / 1.296 GB, free: 13.33 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.261e-05/1.229, allocations: 20 kB / 1.296 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/1.229, allocations: 7.969 kB / 1.296 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/1.249, allocations: 7.423 MB / 1.303 GB, free: 5.762 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/1.249, allocations: 4 kB / 1.303 GB, free: 5.758 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001883/1.251, allocations: 355.7 kB / 1.304 GB, free: 5.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0066/1.257, allocations: 1.701 MB / 1.305 GB, free: 3.688 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002479/1.257, allocations: 47.95 kB / 1.305 GB, free: 3.641 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03392/1.291, allocations: 23.33 MB / 1.328 GB, free: 11.2 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/1.291, allocations: 4 kB / 1.328 GB, free: 11.19 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/1.306, allocations: 4.896 MB / 1.333 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.307, allocations: 0.4997 MB / 1.333 GB, free: 5.691 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003052/1.307, allocations: 28 kB / 1.333 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/1.31, allocations: 323.4 kB / 1.334 GB, free: 5.348 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006626/1.31, allocations: 149 kB / 1.334 GB, free: 5.199 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/1.311, allocations: 51.97 kB / 1.334 GB, free: 5.148 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001373/1.312, allocations: 0.7899 MB / 1.335 GB, free: 4.359 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.9e-07/1.312, allocations: 0 / 1.335 GB, free: 4.359 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002667/1.315, allocations: 0.6602 MB / 1.335 GB, free: 3.699 MB / 1.061 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003715/1.315, allocations: 145.2 kB / 1.336 GB, free: 3.551 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01301/1.328, allocations: 5.155 MB / 1.341 GB, free: 14.29 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/1.328, allocations: 0 / 1.341 GB, free: 14.29 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.008403/1.336, allocations: 3.37 MB / 1.344 GB, free: 10.82 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.339, allocations: 0.5579 MB / 1.344 GB, free: 10.28 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.35, allocations: 4.341 MB / 1.349 GB, free: 5.883 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/1.351, allocations: 1.572 MB / 1.35 GB, free: 4.273 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.00149/1.353, allocations: 382.4 kB / 1.351 GB, free: 3.895 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/1.353, allocations: 107.4 kB / 1.351 GB, free: 3.793 MB / 1.076 GB Notification: Performance of SimCode: time 8.82e-07/1.353, allocations: 0 / 1.351 GB, free: 3.793 MB / 1.076 GB Notification: Performance of Templates: time 0.08125/1.434, allocations: 45.45 MB / 1.395 GB, free: 6.781 MB / 1.123 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches