Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 79.7 kB / 20.23 MB, free: 4.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002166/0.002166, allocations: 161.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 177.1 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.078/3.078, allocations: 377.8 MB / 0.6232 GB, free: 8.535 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.705e-06/2.705e-06, allocations: 0.9844 kB / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.86e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02896/0.029, allocations: 14.88 MB / 0.8253 GB, free: 3.184 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.01949/0.04849, allocations: 10.46 MB / 0.8355 GB, free: 8.738 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.04999, allocations: 83.25 kB / 0.8356 GB, free: 8.656 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.005255/0.05524, allocations: 1.737 MB / 0.8373 GB, free: 6.918 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.006259/0.0615, allocations: 1.897 MB / 0.8392 GB, free: 5.02 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.06396, allocations: 0.7636 MB / 0.8399 GB, free: 4.254 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.005463/0.06942, allocations: 2.85 MB / 0.8427 GB, free: 1.395 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002278/0.0717, allocations: 1.196 MB / 0.8439 GB, free: 172 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003799/0.0755, allocations: 2.109 MB / 0.8459 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.07723, allocations: 0.9699 MB / 0.8469 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 0.0003519/0.07758, allocations: 160 kB / 0.847 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.07925, allocations: 0.721 MB / 0.8477 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0009137/0.08016, allocations: 0.6464 MB / 0.8484 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.08121, allocations: 0.6468 MB / 0.849 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.00455/0.08576, allocations: 2.784 MB / 0.8517 GB, free: 8.113 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.08576, allocations: 4 kB / 0.8517 GB, free: 8.109 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.834e-06/0.08577, allocations: 4 kB / 0.8517 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.884e-05/0.08583, allocations: 0 / 0.8517 GB, free: 8.105 MB / 0.8073 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.00595/0.09178, allocations: 2.369 MB / 0.854 GB, free: 5.691 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.09184, allocations: 12.03 kB / 0.854 GB, free: 5.68 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.103, allocations: 1.79 MB / 0.8558 GB, free: 3.887 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00316/0.1061, allocations: 1.254 MB / 0.857 GB, free: 2.586 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.62e-05/0.1062, allocations: 82.69 kB / 0.8571 GB, free: 2.504 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002969/0.1065, allocations: 120.4 kB / 0.8572 GB, free: 2.387 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004597/0.1111, allocations: 2.095 MB / 0.8593 GB, free: 60 kB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.229e-05/0.1112, allocations: 15.83 kB / 0.8593 GB, free: 44 kB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.1114, allocations: 52.06 kB / 0.8593 GB, free: 15.99 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007338/0.1121, allocations: 194.1 kB / 0.8595 GB, free: 15.8 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004678/0.1168, allocations: 1.363 MB / 0.8608 GB, free: 14.43 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01644/0.1332, allocations: 8.909 MB / 0.8695 GB, free: 5.305 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003911/0.1371, allocations: 1.021 MB / 0.8705 GB, free: 4.277 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.139, allocations: 0.5457 MB / 0.8711 GB, free: 3.73 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.128e-05/0.1391, allocations: 17 kB / 0.8711 GB, free: 3.711 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.1391, allocations: 50.33 kB / 0.8711 GB, free: 3.652 MB / 0.823 GB Notification: Performance of pre-optimization done (n=89): time 2.445e-06/0.1391, allocations: 0 / 0.8711 GB, free: 3.652 MB / 0.823 GB Notification: Performance of matching and sorting (n=153): time 0.02781/0.1669, allocations: 7.045 MB / 0.878 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.167, allocations: 64.72 kB / 0.8781 GB, free: 12.49 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.169, allocations: 1.278 MB / 0.8793 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.1692, allocations: 53.7 kB / 0.8794 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008268/0.1701, allocations: 0.8566 MB / 0.8802 GB, free: 10.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007544/0.1708, allocations: 0.5851 MB / 0.8808 GB, free: 9.695 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007312/0.1716, allocations: 333.1 kB / 0.8811 GB, free: 9.363 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002549/0.1718, allocations: 476.8 kB / 0.8816 GB, free: 8.895 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002223/0.174, allocations: 0.7182 MB / 0.8823 GB, free: 8.176 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/0.1769, allocations: 1.128 MB / 0.8834 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004966/0.1819, allocations: 1.925 MB / 0.8852 GB, free: 4.863 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.1819, allocations: 7.938 kB / 0.8852 GB, free: 4.855 MB / 0.8386 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01154/0.1934, allocations: 3.38 MB / 0.8885 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.1935, allocations: 11.94 kB / 0.8886 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.1935, allocations: 8 kB / 0.8886 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009921/0.2034, allocations: 1.836 MB / 0.8904 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.2051, allocations: 303.5 kB / 0.8906 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03147/0.2366, allocations: 20.64 MB / 0.9108 GB, free: 9.637 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.239, allocations: 195.7 kB / 0.911 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/0.2392, allocations: 68 kB / 0.9111 GB, free: 9.379 MB / 0.8698 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.001008/0.2402, allocations: 308.3 kB / 0.9113 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005337/0.2407, allocations: 222.9 kB / 0.9116 GB, free: 8.848 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.2523, allocations: 3.287 MB / 0.9148 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.2523, allocations: 16 kB / 0.9148 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-05/0.2523, allocations: 16 kB / 0.9148 GB, free: 5.477 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/0.2524, allocations: 7.969 kB / 0.9148 GB, free: 5.469 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/0.2679, allocations: 4.918 MB / 0.9196 GB, free: 440 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.268, allocations: 4 kB / 0.9196 GB, free: 436 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.2694, allocations: 243.5 kB / 0.9198 GB, free: 192 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009032/0.2784, allocations: 1.736 MB / 0.9215 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002554/0.2787, allocations: 43.97 kB / 0.9216 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03003/0.3087, allocations: 20.36 MB / 0.9415 GB, free: 9.043 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.3087, allocations: 7.938 kB / 0.9415 GB, free: 9.035 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.3192, allocations: 3.165 MB / 0.9446 GB, free: 5.766 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.3205, allocations: 394.7 kB / 0.9449 GB, free: 5.379 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002755/0.3208, allocations: 28 kB / 0.945 GB, free: 5.352 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/0.3226, allocations: 203.7 kB / 0.9452 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005819/0.3232, allocations: 156.9 kB / 0.9453 GB, free: 4.996 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.3233, allocations: 59.97 kB / 0.9454 GB, free: 4.938 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.001225/0.3246, allocations: 0.7738 MB / 0.9461 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of sort global known variables: time 9e-08/0.3246, allocations: 0 / 0.9461 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.002468/0.327, allocations: 0.6602 MB / 0.9468 GB, free: 3.5 MB / 0.9011 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.0003219/0.3273, allocations: 151 kB / 0.9469 GB, free: 3.344 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.009711/0.3371, allocations: 3.955 MB / 0.9508 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.3371, allocations: 4 kB / 0.9508 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.007044/0.3441, allocations: 3.104 MB / 0.9538 GB, free: 11.99 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.3468, allocations: 0.5151 MB / 0.9543 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007951/0.3548, allocations: 3.475 MB / 0.9577 GB, free: 7.941 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.3561, allocations: 0.9447 MB / 0.9586 GB, free: 6.953 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001333/0.3575, allocations: 313.2 kB / 0.9589 GB, free: 6.641 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003924/0.3579, allocations: 100.4 kB / 0.959 GB, free: 6.543 MB / 0.9167 GB Notification: Performance of SimCode: time 1.373e-06/0.3579, allocations: 0 / 0.959 GB, free: 6.543 MB / 0.9167 GB Notification: Performance of Templates: time 0.08392/0.4418, allocations: 47.49 MB / 1.005 GB, free: 7.75 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.701529957004823]