Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007174/0.007174, allocations: 99.05 kB / 15.73 MB, free: 6.055 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.001658/0.001658, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.803/2.803, allocations: 469.8 MB / 0.7425 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.83 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3383, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006851/0.3451, allocations: 5.488 MB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004295/0.3494, allocations: 2.63 MB / 1.229 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/0.3497, allocations: 19.88 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.3515, allocations: 0.6922 MB / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008788/0.3524, allocations: 421.8 kB / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009416/0.3533, allocations: 391.1 kB / 1.23 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00121/0.3545, allocations: 0.9514 MB / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006562/0.3552, allocations: 370.5 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00068/0.3558, allocations: 374.6 kB / 1.232 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000688/0.3565, allocations: 402.4 kB / 1.232 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.3567, allocations: 48 kB / 1.232 GB, free: 2.012 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007005/0.3574, allocations: 363.3 kB / 1.232 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002953/0.3577, allocations: 251.2 kB / 1.233 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004869/0.3582, allocations: 358.1 kB / 1.233 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.3593, allocations: 0.9728 MB / 1.234 GB, free: 84 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3593, allocations: 3.938 kB / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3594, allocations: 0 / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.3594, allocations: 0 / 1.234 GB, free: 80 kB / 0.9825 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.001577/0.3609, allocations: 0.9924 MB / 1.235 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.361, allocations: 8.031 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001328/0.3623, allocations: 196.3 kB / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000726/0.363, allocations: 0.53 MB / 1.236 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.3631, allocations: 37.36 kB / 1.236 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3632, allocations: 52.55 kB / 1.236 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.3643, allocations: 0.8279 MB / 1.237 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.3643, allocations: 11.92 kB / 1.237 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.3644, allocations: 27.98 kB / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001831/0.3646, allocations: 60.95 kB / 1.237 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008296/0.3654, allocations: 0.5697 MB / 1.237 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00432/0.3697, allocations: 4.57 MB / 1.242 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/0.3702, allocations: 283.2 kB / 1.242 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.3705, allocations: 213.2 kB / 1.242 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.3705, allocations: 4.281 kB / 1.242 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.3706, allocations: 50.83 kB / 1.242 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 1.843e-06/0.3706, allocations: 0 / 1.242 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of matching and sorting (n=40): time 0.005475/0.376, allocations: 2.632 MB / 1.245 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.3761, allocations: 59.41 kB / 1.245 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.3765, allocations: 461.9 kB / 1.245 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.3766, allocations: 33.7 kB / 1.245 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.3768, allocations: 344.5 kB / 1.246 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.3769, allocations: 158.7 kB / 1.246 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.3771, allocations: 102.2 kB / 1.246 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3772, allocations: 362.8 kB / 1.246 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.3776, allocations: 233 kB / 1.246 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004807/0.3781, allocations: 410.4 kB / 1.247 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008677/0.3789, allocations: 0.6779 MB / 1.247 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3789, allocations: 0 / 1.247 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001572/0.3805, allocations: 0.9173 MB / 1.248 GB, free: 440 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3805, allocations: 8 kB / 1.248 GB, free: 432 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3805, allocations: 8 kB / 1.248 GB, free: 424 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007526/0.3813, allocations: 223 kB / 1.249 GB, free: 192 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.3818, allocations: 111.9 kB / 1.249 GB, free: 80 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6527/1.034, allocations: 5.332 MB / 1.254 GB, free: 25.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005594/1.035, allocations: 34.2 kB / 1.254 GB, free: 25.44 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.984e-05/1.035, allocations: 27.23 kB / 1.254 GB, free: 25.44 MB / 0.9981 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.0003236/1.035, allocations: 226.5 kB / 1.254 GB, free: 25.33 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/1.036, allocations: 59.56 kB / 1.254 GB, free: 25.33 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/1.037, allocations: 0.769 MB / 1.255 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/1.037, allocations: 4.719 kB / 1.255 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.037, allocations: 3.25 kB / 1.255 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.037, allocations: 3.141 kB / 1.255 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/1.04, allocations: 1.498 MB / 1.256 GB, free: 24.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/1.04, allocations: 1.875 kB / 1.256 GB, free: 24.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/1.04, allocations: 67.25 kB / 1.257 GB, free: 24.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006665/1.041, allocations: 209.8 kB / 1.257 GB, free: 24.82 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/1.041, allocations: 11.47 kB / 1.257 GB, free: 24.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003967/1.045, allocations: 5.27 MB / 1.262 GB, free: 20.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.045, allocations: 2.875 kB / 1.262 GB, free: 20.79 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/1.046, allocations: 1.128 MB / 1.263 GB, free: 20.53 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002206/1.047, allocations: 175.7 kB / 1.263 GB, free: 20.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.974e-05/1.047, allocations: 10.41 kB / 1.263 GB, free: 20.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/1.047, allocations: 28.59 kB / 1.263 GB, free: 20.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/1.047, allocations: 38.5 kB / 1.263 GB, free: 20.39 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/1.047, allocations: 14.12 kB / 1.263 GB, free: 20.39 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003509/1.047, allocations: 314.2 kB / 1.264 GB, free: 20.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.047, allocations: 0 / 1.264 GB, free: 20.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007031/1.048, allocations: 166.2 kB / 1.264 GB, free: 20.3 MB / 0.9981 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.0001372/1.048, allocations: 119.7 kB / 1.264 GB, free: 20.21 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001427/1.05, allocations: 0.9671 MB / 1.265 GB, free: 19.85 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/1.05, allocations: 0 / 1.265 GB, free: 19.85 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008046/1.051, allocations: 0.6741 MB / 1.265 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.0008544/1.051, allocations: 173.4 kB / 1.266 GB, free: 19.48 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/1.053, allocations: 1.272 MB / 1.267 GB, free: 18.89 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/1.054, allocations: 0.9438 MB / 1.268 GB, free: 18.18 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000319/1.054, allocations: 114 kB / 1.268 GB, free: 18.17 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.934e-05/1.054, allocations: 37.81 kB / 1.268 GB, free: 18.16 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/1.054, allocations: 0 / 1.268 GB, free: 18.16 MB / 0.9981 GB Notification: Performance of Templates: time 0.02044/1.074, allocations: 9.017 MB / 1.277 GB, free: 17.65 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches