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.001087/0.001087, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001297/0.001297, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.961/2.961, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004502/0.0004504, allocations: 14.06 kB / 0.9021 GB, free: 36.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3503, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005624/0.356, allocations: 4.839 MB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003963/0.36, allocations: 2.472 MB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004882/0.3605, allocations: 19.88 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.3609, allocations: 103.1 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.362, allocations: 326.2 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.363, allocations: 295.3 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001548/0.3646, allocations: 1.037 MB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/0.3661, allocations: 0.7437 MB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007229/0.3668, allocations: 310.7 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007006/0.3676, allocations: 374.6 kB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.3677, allocations: 24 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005902/0.3683, allocations: 187.8 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002897/0.3686, allocations: 219.4 kB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.3688, allocations: 145.3 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008639/0.3697, allocations: 0.7249 MB / 1.07 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3697, allocations: 0 / 1.07 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3697, allocations: 0 / 1.07 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.225e-05/0.3698, allocations: 0 / 1.07 GB, free: 9.488 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.001752/0.3715, allocations: 0.8529 MB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3716, allocations: 8.031 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.373, allocations: 194.9 kB / 1.071 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007099/0.3737, allocations: 473.6 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.3737, allocations: 40.94 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.3739, allocations: 55.89 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3751, allocations: 0.82 MB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.3751, allocations: 11.88 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.996e-05/0.3752, allocations: 20 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001936/0.3754, allocations: 68.95 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009493/0.3764, allocations: 0.5658 MB / 1.073 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004417/0.3808, allocations: 4.593 MB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.3813, allocations: 299.2 kB / 1.077 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.3816, allocations: 225.3 kB / 1.078 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3816, allocations: 4.281 kB / 1.078 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.3817, allocations: 42.84 kB / 1.078 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.3817, allocations: 0 / 1.078 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.005154/0.3868, allocations: 2.627 MB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.3869, allocations: 55.41 kB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/0.3874, allocations: 446 kB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3874, allocations: 41.69 kB / 1.081 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.3877, allocations: 347.6 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.3878, allocations: 141.9 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.3878, allocations: 12 kB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.388, allocations: 366.7 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/0.3884, allocations: 233 kB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004955/0.3889, allocations: 410.4 kB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004345/0.3894, allocations: 289.7 kB / 1.082 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3894, allocations: 4 kB / 1.082 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001627/0.391, allocations: 0.9099 MB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.391, allocations: 11.98 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.3911, allocations: 4 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007319/0.3918, allocations: 226.6 kB / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.3923, allocations: 119.8 kB / 1.084 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004747/0.3971, allocations: 4.935 MB / 1.088 GB, free: 4.898 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.3975, allocations: 31.97 kB / 1.088 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.911e-05/0.3975, allocations: 24 kB / 1.088 GB, free: 4.844 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003099/0.3978, allocations: 225.5 kB / 1.089 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.398, allocations: 59.34 kB / 1.089 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.3994, allocations: 0.7733 MB / 1.09 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3994, allocations: 7.984 kB / 1.09 GB, free: 3.758 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.3994, allocations: 4 kB / 1.09 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3995, allocations: 0 / 1.09 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.402, allocations: 1.498 MB / 1.091 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.402, allocations: 0 / 1.091 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.4024, allocations: 71.88 kB / 1.091 GB, free: 2.098 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000617/0.403, allocations: 198.6 kB / 1.091 GB, free: 1.895 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.4031, allocations: 16 kB / 1.091 GB, free: 1.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004897/0.408, allocations: 4.873 MB / 1.096 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.408, allocations: 4 kB / 1.096 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.41, allocations: 1.127 MB / 1.097 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.4103, allocations: 176.5 kB / 1.097 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.4105, allocations: 11.94 kB / 1.097 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.4108, allocations: 27.95 kB / 1.097 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.4109, allocations: 31.97 kB / 1.097 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.4109, allocations: 11.98 kB / 1.097 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003782/0.4113, allocations: 310.8 kB / 1.098 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4113, allocations: 0 / 1.098 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000796/0.4121, allocations: 172 kB / 1.098 GB, free: 10.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002313/0.4123, allocations: 121.9 kB / 1.098 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001923/0.4143, allocations: 1.005 MB / 1.099 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.4143, allocations: 4 kB / 1.099 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.4153, allocations: 0.6759 MB / 1.1 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.4165, allocations: 171 kB / 1.1 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.419, allocations: 1.486 MB / 1.101 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005817/0.4196, allocations: 0.9494 MB / 1.102 GB, free: 6.117 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003846/0.42, allocations: 117 kB / 1.102 GB, free: 6 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.4201, allocations: 35.44 kB / 1.102 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.4201, allocations: 0 / 1.102 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of Templates: time 0.01574/0.4358, allocations: 8.142 MB / 1.11 GB, free: 13.93 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