Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.00132/0.00132, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001408/0.001408, allocations: 192.2 kB / 16.25 MB, free: 6.629 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.304/1.304, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.638/2.638, allocations: 472.6 MB / 0.7448 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 62.81 kB / 0.9115 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2662, allocations: 159.9 MB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006522/0.2727, allocations: 5.496 MB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003834/0.2766, allocations: 2.599 MB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002764/0.2769, allocations: 23.81 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.2786, allocations: 0.6384 MB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008355/0.2794, allocations: 382.1 kB / 1.077 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008465/0.2803, allocations: 354.7 kB / 1.077 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008564/0.2811, allocations: 0.9553 MB / 1.078 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000691/0.2818, allocations: 0.5065 MB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003921/0.2822, allocations: 378.5 kB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004388/0.2827, allocations: 418.5 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.63e-05/0.2828, allocations: 48 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005729/0.2833, allocations: 375.1 kB / 1.08 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.2836, allocations: 239.4 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.2838, allocations: 346.3 kB / 1.08 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009059/0.2848, allocations: 0.9967 MB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2848, allocations: 3.938 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2848, allocations: 0 / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.2848, allocations: 0 / 1.081 GB, free: 13.06 MB / 0.8419 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.001462/0.2863, allocations: 0.964 MB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2863, allocations: 8.031 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.2877, allocations: 195.8 kB / 1.082 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000636/0.2883, allocations: 494.4 kB / 1.083 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.2884, allocations: 41.31 kB / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.2885, allocations: 64.44 kB / 1.083 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.2896, allocations: 0.8279 MB / 1.084 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.2897, allocations: 3.984 kB / 1.084 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.2897, allocations: 20 kB / 1.084 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001825/0.2899, allocations: 64.95 kB / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008076/0.2907, allocations: 0.5735 MB / 1.084 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.2947, allocations: 4.577 MB / 1.089 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.2951, allocations: 295.3 kB / 1.089 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.2954, allocations: 225.3 kB / 1.089 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.2954, allocations: 8.281 kB / 1.089 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.2955, allocations: 30.84 kB / 1.089 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.2955, allocations: 3.938 kB / 1.089 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40): time 0.005319/0.3008, allocations: 2.635 MB / 1.092 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3009, allocations: 59.39 kB / 1.092 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004308/0.3013, allocations: 461.9 kB / 1.092 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.3014, allocations: 29.7 kB / 1.092 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.3016, allocations: 339.6 kB / 1.093 GB, free: 492 kB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.857e-05/0.3017, allocations: 145.9 kB / 1.093 GB, free: 344 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.3018, allocations: 106.2 kB / 1.093 GB, free: 232 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.302, allocations: 362.8 kB / 1.093 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.3023, allocations: 237 kB / 1.093 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.3027, allocations: 414.5 kB / 1.094 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.3035, allocations: 0.6778 MB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3035, allocations: 4 kB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001561/0.3051, allocations: 0.9175 MB / 1.095 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3051, allocations: 7.938 kB / 1.095 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.3052, allocations: 8 kB / 1.095 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007716/0.3059, allocations: 226.6 kB / 1.096 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004969/0.3064, allocations: 119.7 kB / 1.096 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004752/0.3112, allocations: 5.336 MB / 1.101 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.3117, allocations: 31.97 kB / 1.101 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.3117, allocations: 20 kB / 1.101 GB, free: 7.297 MB / 0.8575 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.0003102/0.3121, allocations: 226.4 kB / 1.101 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.715e-05/0.3122, allocations: 59.28 kB / 1.101 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.3136, allocations: 0.7735 MB / 1.102 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3137, allocations: 4 kB / 1.102 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3137, allocations: 4 kB / 1.102 GB, free: 6.211 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3137, allocations: 3.984 kB / 1.102 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.316, allocations: 1.502 MB / 1.104 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.316, allocations: 4 kB / 1.104 GB, free: 4.613 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.3164, allocations: 63.95 kB / 1.104 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006822/0.3171, allocations: 210.4 kB / 1.104 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.3171, allocations: 8.188 kB / 1.104 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00459/0.3217, allocations: 5.285 MB / 1.109 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3218, allocations: 4 kB / 1.109 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.3234, allocations: 1.139 MB / 1.11 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.3237, allocations: 164.4 kB / 1.11 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-05/0.3238, allocations: 19.94 kB / 1.11 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/0.3241, allocations: 19.97 kB / 1.11 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.3242, allocations: 31.95 kB / 1.11 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3242, allocations: 16 kB / 1.11 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000323/0.3245, allocations: 314.9 kB / 1.111 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3246, allocations: 4.062 kB / 1.111 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006593/0.3252, allocations: 164 kB / 1.111 GB, free: 12.69 MB / 0.8731 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.000185/0.3254, allocations: 115.2 kB / 1.111 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001576/0.327, allocations: 1.059 MB / 1.112 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.327, allocations: 0 / 1.112 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008835/0.3279, allocations: 0.6721 MB / 1.113 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008588/0.3288, allocations: 187.5 kB / 1.113 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.3308, allocations: 1.494 MB / 1.114 GB, free: 9.039 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.3313, allocations: 0.9571 MB / 1.115 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003623/0.3317, allocations: 113 kB / 1.115 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.3318, allocations: 35.44 kB / 1.115 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.3318, allocations: 0 / 1.115 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of Templates: time 0.01457/0.3463, allocations: 8.899 MB / 1.124 GB, free: 15.12 MB / 0.8887 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)