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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001483/0.001483, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00169/0.00169, allocations: 195.2 kB / 16.14 MB, free: 6.652 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.343/1.343, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.711/2.711, allocations: 461.9 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 69.97 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2941, allocations: 157.4 MB / 1.052 GB, free: 8.82 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006914/0.301, allocations: 5.487 MB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004178/0.3052, allocations: 2.638 MB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003484/0.3056, allocations: 23.81 kB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.3073, allocations: 0.6376 MB / 1.061 GB, free: 16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000869/0.3082, allocations: 382 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008814/0.3091, allocations: 355.3 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001135/0.3102, allocations: 1.248 MB / 1.063 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000694/0.3109, allocations: 454.2 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.3114, allocations: 334.5 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.3118, allocations: 410.5 kB / 1.064 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.116e-05/0.3119, allocations: 36 kB / 1.064 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007462/0.3127, allocations: 439.1 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.3129, allocations: 231.3 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003052/0.3132, allocations: 330.3 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009309/0.3142, allocations: 0.981 MB / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3142, allocations: 0 / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.31e-07/0.3142, allocations: 0 / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.3142, allocations: 0 / 1.066 GB, free: 10.85 MB / 0.8262 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.3158, allocations: 0.97 MB / 1.067 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3158, allocations: 12.03 kB / 1.067 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.3172, allocations: 187.9 kB / 1.067 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006469/0.3179, allocations: 490.4 kB / 1.067 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.3179, allocations: 37.36 kB / 1.067 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3181, allocations: 52.56 kB / 1.067 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.3193, allocations: 0.8333 MB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.3193, allocations: 3.906 kB / 1.068 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.975e-05/0.3194, allocations: 31.92 kB / 1.068 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001931/0.3196, allocations: 64.94 kB / 1.068 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008732/0.3205, allocations: 0.5774 MB / 1.069 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.3247, allocations: 4.573 MB / 1.073 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.3252, allocations: 295.3 kB / 1.074 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.3255, allocations: 225.3 kB / 1.074 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.3255, allocations: 4.281 kB / 1.074 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.3256, allocations: 38.78 kB / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.3256, allocations: 0 / 1.074 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.005592/0.3312, allocations: 2.626 MB / 1.076 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.3312, allocations: 59.34 kB / 1.076 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004716/0.3317, allocations: 457.9 kB / 1.077 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.3318, allocations: 29.7 kB / 1.077 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.332, allocations: 347.6 kB / 1.077 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3321, allocations: 142 kB / 1.077 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3323, allocations: 106.1 kB / 1.078 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3324, allocations: 362.8 kB / 1.078 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.3328, allocations: 241 kB / 1.078 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004539/0.3333, allocations: 402.5 kB / 1.078 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008609/0.3341, allocations: 0.6778 MB / 1.079 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3341, allocations: 4 kB / 1.079 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001691/0.3358, allocations: 0.9214 MB / 1.08 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3359, allocations: 4 kB / 1.08 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3359, allocations: 8 kB / 1.08 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008261/0.3367, allocations: 230.6 kB / 1.08 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/0.3372, allocations: 115.8 kB / 1.08 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/0.3419, allocations: 4.938 MB / 1.085 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.3424, allocations: 32.03 kB / 1.085 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.3425, allocations: 24 kB / 1.085 GB, free: 5.52 MB / 0.8419 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.0003138/0.3428, allocations: 225.6 kB / 1.085 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.868e-05/0.3429, allocations: 55.34 kB / 1.086 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.3444, allocations: 0.7733 MB / 1.086 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3444, allocations: 4 kB / 1.086 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3444, allocations: 4 kB / 1.086 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3444, allocations: 3.984 kB / 1.086 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.3468, allocations: 1.499 MB / 1.088 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.3468, allocations: 0 / 1.088 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.3472, allocations: 71.89 kB / 1.088 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006744/0.3479, allocations: 210.5 kB / 1.088 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.3479, allocations: 8 kB / 1.088 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004474/0.3524, allocations: 4.868 MB / 1.093 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.3524, allocations: 7.969 kB / 1.093 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.3542, allocations: 1.139 MB / 1.094 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.3544, allocations: 168.4 kB / 1.094 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.27e-05/0.3545, allocations: 16.06 kB / 1.094 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.3548, allocations: 27.91 kB / 1.094 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.3549, allocations: 39.83 kB / 1.094 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.3549, allocations: 12 kB / 1.094 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003544/0.3553, allocations: 310.9 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3553, allocations: 0 / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006805/0.356, allocations: 172 kB / 1.095 GB, free: 11.34 MB / 0.8575 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.0001504/0.3561, allocations: 111.2 kB / 1.095 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.3577, allocations: 1.008 MB / 1.096 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3577, allocations: 0 / 1.096 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0009145/0.3586, allocations: 0.6799 MB / 1.096 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008966/0.3595, allocations: 168 kB / 1.097 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3617, allocations: 1.508 MB / 1.098 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.3622, allocations: 0.9455 MB / 1.099 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003539/0.3626, allocations: 109 kB / 1.099 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.43e-05/0.3627, allocations: 39.44 kB / 1.099 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3627, allocations: 0 / 1.099 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of Templates: time 0.01419/0.3769, allocations: 8.537 MB / 1.107 GB, free: 14.18 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches