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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001497/0.001497, allocations: 103.4 kB / 16.35 MB, free: 5.875 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.001561/0.001561, allocations: 191 kB / 17.29 MB, free: 5.516 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.547/1.547, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.596/2.596, allocations: 442.6 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001389, allocations: 75.78 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3364, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007027/0.3434, allocations: 5.47 MB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004443/0.3479, allocations: 2.634 MB / 1.035 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004029/0.3484, allocations: 19.88 kB / 1.035 GB, free: 9.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001726/0.3502, allocations: 0.6845 MB / 1.035 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0009577/0.3511, allocations: 405.8 kB / 1.036 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.3522, allocations: 399 kB / 1.036 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001081/0.3532, allocations: 0.9435 MB / 1.037 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006347/0.3539, allocations: 474.4 kB / 1.037 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000433/0.3543, allocations: 362.7 kB / 1.038 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004945/0.3548, allocations: 402.4 kB / 1.038 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.3549, allocations: 51.94 kB / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006369/0.3556, allocations: 359.3 kB / 1.039 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.3558, allocations: 243.4 kB / 1.039 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.3562, allocations: 358.2 kB / 1.039 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.3572, allocations: 0.9695 MB / 1.04 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3572, allocations: 4 kB / 1.04 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3572, allocations: 0 / 1.04 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.3572, allocations: 0 / 1.04 GB, free: 4.254 MB / 0.8106 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.001533/0.3588, allocations: 0.9659 MB / 1.041 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3588, allocations: 8.031 kB / 1.041 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.3602, allocations: 191.9 kB / 1.041 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008399/0.3611, allocations: 0.5218 MB / 1.042 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.3611, allocations: 37.36 kB / 1.042 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.3613, allocations: 64.39 kB / 1.042 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.3624, allocations: 0.8319 MB / 1.043 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.3624, allocations: 3.938 kB / 1.043 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.241e-05/0.3625, allocations: 23.98 kB / 1.043 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/0.3627, allocations: 68.95 kB / 1.043 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008641/0.3635, allocations: 0.5658 MB / 1.043 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004288/0.3678, allocations: 4.573 MB / 1.048 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.3683, allocations: 291.3 kB / 1.048 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.3686, allocations: 221.3 kB / 1.048 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.521e-05/0.3687, allocations: 8.281 kB / 1.048 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.3687, allocations: 34.84 kB / 1.048 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 2.505e-06/0.3687, allocations: 4 kB / 1.048 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.005463/0.3742, allocations: 2.631 MB / 1.051 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.3742, allocations: 55.41 kB / 1.051 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004947/0.3747, allocations: 457.9 kB / 1.051 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.3748, allocations: 33.7 kB / 1.051 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.375, allocations: 343.6 kB / 1.052 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.3752, allocations: 138 kB / 1.052 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.3753, allocations: 110.1 kB / 1.052 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3755, allocations: 362.8 kB / 1.052 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.3759, allocations: 241 kB / 1.053 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.3763, allocations: 410.4 kB / 1.053 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.3772, allocations: 0.6779 MB / 1.054 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3772, allocations: 0 / 1.054 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001592/0.3788, allocations: 0.9171 MB / 1.054 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3788, allocations: 10.66 kB / 1.054 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.3788, allocations: 4 kB / 1.055 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007639/0.3796, allocations: 226.9 kB / 1.055 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.3801, allocations: 119.8 kB / 1.055 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.3854, allocations: 5.336 MB / 1.06 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005727/0.386, allocations: 35.97 kB / 1.06 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.3861, allocations: 20 kB / 1.06 GB, free: 14.47 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.0003691/0.3865, allocations: 225.7 kB / 1.06 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.3866, allocations: 59.28 kB / 1.06 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.3881, allocations: 0.7696 MB / 1.061 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.3881, allocations: 4 kB / 1.061 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3881, allocations: 4 kB / 1.061 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3881, allocations: 3.984 kB / 1.061 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.3905, allocations: 1.499 MB / 1.063 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3905, allocations: 0 / 1.063 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.3909, allocations: 79.81 kB / 1.063 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006572/0.3916, allocations: 206.5 kB / 1.063 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.3916, allocations: 8 kB / 1.063 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005005/0.3966, allocations: 5.274 MB / 1.068 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3966, allocations: 3.938 kB / 1.068 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.3984, allocations: 1.135 MB / 1.069 GB, free: 4.617 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.3987, allocations: 164.4 kB / 1.069 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.9e-05/0.3987, allocations: 15.94 kB / 1.069 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.3991, allocations: 23.97 kB / 1.069 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.3992, allocations: 35.89 kB / 1.069 GB, free: 4.363 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.3992, allocations: 16 kB / 1.069 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003588/0.3996, allocations: 318.9 kB / 1.07 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3996, allocations: 0 / 1.07 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007683/0.4003, allocations: 164 kB / 1.07 GB, free: 3.879 MB / 0.8419 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.0002074/0.4006, allocations: 111.2 kB / 1.07 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001667/0.4022, allocations: 1.012 MB / 1.071 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4022, allocations: 0 / 1.071 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0009059/0.4032, allocations: 0.6876 MB / 1.072 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008408/0.404, allocations: 192.1 kB / 1.072 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.406, allocations: 1.237 MB / 1.073 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5973/1.003, allocations: 0.9468 MB / 1.074 GB, free: 52.24 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005785/1.004, allocations: 110.8 kB / 1.074 GB, free: 52.24 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/1.004, allocations: 36.75 kB / 1.074 GB, free: 52.23 MB / 0.8419 GB Notification: Performance of SimCode: time 1.193e-06/1.004, allocations: 0.6562 kB / 1.074 GB, free: 52.23 MB / 0.8419 GB Notification: Performance of Templates: time 0.02365/1.028, allocations: 8.846 MB / 1.083 GB, free: 52 MB / 0.8419 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 -s cvode -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/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) Reference file matches