Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.001676/0.001676, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.002129/0.002129, allocations: 217.6 kB / 23.01 MB, free: 4.609 MB / 14.72 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.211/3.211, allocations: 0.505 GB / 0.8108 GB, free: 21.98 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 76.09 kB / 1.178 GB, free: 16.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.365, allocations: 180.2 MB / 1.354 GB, free: 7.953 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007948/0.3729, allocations: 5.686 MB / 1.36 GB, free: 2.242 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.004814/0.3777, allocations: 2.77 MB / 1.362 GB, free: 15.46 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.3781, allocations: 27.75 kB / 1.362 GB, free: 15.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.38, allocations: 0.7064 MB / 1.363 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0009499/0.3809, allocations: 421.7 kB / 1.363 GB, free: 14.31 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009738/0.3819, allocations: 405.6 kB / 1.364 GB, free: 13.92 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001101/0.383, allocations: 0.9516 MB / 1.365 GB, free: 12.96 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005582/0.3836, allocations: 378.5 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005265/0.3841, allocations: 386.5 kB / 1.366 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005942/0.3847, allocations: 430.4 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.483e-05/0.3848, allocations: 48 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006522/0.3854, allocations: 379.2 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.3857, allocations: 251.2 kB / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003353/0.386, allocations: 346.3 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.3871, allocations: 0.9805 MB / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3872, allocations: 0 / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3872, allocations: 0 / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.3872, allocations: 0 / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001613/0.3888, allocations: 0.9131 MB / 1.369 GB, free: 8.852 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3888, allocations: 8.031 kB / 1.369 GB, free: 8.844 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.3901, allocations: 200.2 kB / 1.369 GB, free: 8.648 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008597/0.391, allocations: 455.6 kB / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.391, allocations: 37.36 kB / 1.369 GB, free: 8.141 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.3912, allocations: 60.5 kB / 1.369 GB, free: 8.082 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.3926, allocations: 0.8324 MB / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.3926, allocations: 0 / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/0.3926, allocations: 27.98 kB / 1.37 GB, free: 7.137 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/0.3929, allocations: 68.94 kB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.3939, allocations: 0.5696 MB / 1.371 GB, free: 6.5 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.3993, allocations: 4.505 MB / 1.375 GB, free: 1.66 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.3999, allocations: 275.2 kB / 1.376 GB, free: 1.383 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/0.4002, allocations: 217.3 kB / 1.376 GB, free: 1.168 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.4003, allocations: 4.281 kB / 1.376 GB, free: 1.164 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.4003, allocations: 38.78 kB / 1.376 GB, free: 1.117 MB / 1.061 GB Notification: Performance of pre-optimization done (n=33): time 2.494e-06/0.4003, allocations: 0 / 1.376 GB, free: 1.117 MB / 1.061 GB Notification: Performance of matching and sorting (n=40): time 0.005698/0.406, allocations: 2.326 MB / 1.378 GB, free: 14.74 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.4061, allocations: 63.33 kB / 1.378 GB, free: 14.66 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/0.4066, allocations: 454 kB / 1.379 GB, free: 14.21 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.855e-05/0.4066, allocations: 37.7 kB / 1.379 GB, free: 14.17 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.4069, allocations: 356.5 kB / 1.379 GB, free: 13.82 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.407, allocations: 150.7 kB / 1.379 GB, free: 13.67 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.4072, allocations: 102.3 kB / 1.379 GB, free: 13.56 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4074, allocations: 358.8 kB / 1.38 GB, free: 13.2 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.4078, allocations: 241.2 kB / 1.38 GB, free: 12.96 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/0.4083, allocations: 407.4 kB / 1.38 GB, free: 12.49 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00092/0.4092, allocations: 0.6778 MB / 1.381 GB, free: 11.74 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4092, allocations: 0 / 1.381 GB, free: 11.74 MB / 1.076 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001705/0.4109, allocations: 0.9171 MB / 1.382 GB, free: 10.8 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.4109, allocations: 8 kB / 1.382 GB, free: 10.8 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.4109, allocations: 4 kB / 1.382 GB, free: 10.79 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/0.4117, allocations: 227 kB / 1.382 GB, free: 10.56 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.4123, allocations: 115.8 kB / 1.382 GB, free: 10.45 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005474/0.4177, allocations: 5.041 MB / 1.387 GB, free: 5.059 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/0.4182, allocations: 32.03 kB / 1.387 GB, free: 5.027 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.4183, allocations: 24 kB / 1.387 GB, free: 5.004 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003505/0.4186, allocations: 217.6 kB / 1.387 GB, free: 4.781 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.576e-05/0.4187, allocations: 63.61 kB / 1.387 GB, free: 4.719 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.4203, allocations: 0.7696 MB / 1.388 GB, free: 3.93 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4203, allocations: 4 kB / 1.388 GB, free: 3.926 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4203, allocations: 0 / 1.388 GB, free: 3.926 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4203, allocations: 3.984 kB / 1.388 GB, free: 3.922 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/0.4229, allocations: 1.463 MB / 1.39 GB, free: 2.379 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4229, allocations: 0 / 1.39 GB, free: 2.379 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003771/0.4232, allocations: 67.88 kB / 1.39 GB, free: 2.312 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006905/0.4239, allocations: 206.8 kB / 1.39 GB, free: 2.102 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.424, allocations: 12 kB / 1.39 GB, free: 2.09 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005207/0.4292, allocations: 4.972 MB / 1.395 GB, free: 12.78 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.4292, allocations: 4.031 kB / 1.395 GB, free: 12.77 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.4311, allocations: 1.135 MB / 1.396 GB, free: 11.59 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.4314, allocations: 91.61 kB / 1.396 GB, free: 11.5 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.962e-05/0.4314, allocations: 15.94 kB / 1.396 GB, free: 11.48 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.4318, allocations: 31.91 kB / 1.396 GB, free: 11.45 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.4319, allocations: 39.98 kB / 1.396 GB, free: 11.41 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.4319, allocations: 12 kB / 1.396 GB, free: 11.4 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0003761/0.4323, allocations: 306.9 kB / 1.396 GB, free: 11.11 MB / 1.092 GB Notification: Performance of sort global known variables: time 9e-08/0.4323, allocations: 0 / 1.396 GB, free: 11.11 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0007085/0.433, allocations: 172 kB / 1.396 GB, free: 10.94 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001682/0.4331, allocations: 107.1 kB / 1.396 GB, free: 10.82 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.00167/0.4348, allocations: 0.9693 MB / 1.397 GB, free: 9.816 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4348, allocations: 3.938 kB / 1.397 GB, free: 9.812 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.4358, allocations: 0.6719 MB / 1.398 GB, free: 9.102 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008767/0.4367, allocations: 186.2 kB / 1.398 GB, free: 8.922 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.439, allocations: 1.328 MB / 1.4 GB, free: 7.543 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006311/0.4396, allocations: 0.9492 MB / 1.401 GB, free: 6.566 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.4398, allocations: 39.44 kB / 1.401 GB, free: 6.527 MB / 1.092 GB Notification: Performance of SimCode: time 5.71e-07/0.4398, allocations: 4 kB / 1.401 GB, free: 6.523 MB / 1.092 GB Notification: Performance of Templates: time 0.01958/0.4593, allocations: 14.86 MB / 1.415 GB, free: 7.707 MB / 1.108 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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: 13.822338216006756]