Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001404/0.001404, allocations: 104.4 kB / 16.27 MB, free: 6.418 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.001474/0.001475, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002273/0.002273, allocations: 287.9 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9462/0.9462, allocations: 169.3 MB / 0.4988 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 94.52 kB / 0.5959 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1685, allocations: 86.97 MB / 0.6808 GB, free: 8.152 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007487/0.1761, allocations: 5.452 MB / 0.6862 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.1805, allocations: 2.626 MB / 0.6887 GB, free: 36 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004701/0.181, allocations: 19.88 kB / 0.6888 GB, free: 16 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2557/0.4367, allocations: 0.6661 MB / 0.6894 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.4378, allocations: 411.5 kB / 0.6898 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009338/0.4387, allocations: 393.6 kB / 0.6902 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.4398, allocations: 0.9509 MB / 0.6911 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006244/0.4404, allocations: 468.7 kB / 0.6915 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004338/0.4409, allocations: 370.6 kB / 0.6919 GB, free: 12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.4413, allocations: 404.4 kB / 0.6923 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.515e-05/0.4414, allocations: 48.22 kB / 0.6923 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006633/0.4421, allocations: 360.4 kB / 0.6927 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.4424, allocations: 249.5 kB / 0.6929 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.4427, allocations: 350.5 kB / 0.6932 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.4438, allocations: 0.961 MB / 0.6942 GB, free: 11.61 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4439, allocations: 0 / 0.6942 GB, free: 11.61 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4439, allocations: 4.875 kB / 0.6942 GB, free: 11.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.4439, allocations: 0 / 0.6942 GB, free: 11.61 MB / 494.1 MB 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.001449/0.4453, allocations: 0.9689 MB / 0.6951 GB, free: 11.01 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.4454, allocations: 9.734 kB / 0.6951 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.4468, allocations: 192.6 kB / 0.6953 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/0.4474, allocations: 494.7 kB / 0.6958 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.4475, allocations: 43.02 kB / 0.6958 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.4476, allocations: 52.52 kB / 0.6959 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.4489, allocations: 0.8347 MB / 0.6967 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.4489, allocations: 3.516 kB / 0.6967 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.214e-05/0.449, allocations: 21.83 kB / 0.6967 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002134/0.4492, allocations: 71.45 kB / 0.6968 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009582/0.4502, allocations: 0.5693 MB / 0.6974 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.4542, allocations: 4.581 MB / 0.7018 GB, free: 6.285 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.4547, allocations: 298.7 kB / 0.7021 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003326/0.4551, allocations: 223.1 kB / 0.7023 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.4551, allocations: 8.188 kB / 0.7023 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.4551, allocations: 36.81 kB / 0.7024 GB, free: 6.027 MB / 494.1 MB Notification: Performance of pre-optimization done (n=33): time 1.733e-06/0.4551, allocations: 0 / 0.7024 GB, free: 6.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=40): time 0.0059/0.461, allocations: 2.635 MB / 0.7049 GB, free: 4.641 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.4611, allocations: 56.78 kB / 0.705 GB, free: 4.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005549/0.4617, allocations: 456 kB / 0.7054 GB, free: 4.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.4617, allocations: 32.42 kB / 0.7055 GB, free: 4.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.4619, allocations: 336.8 kB / 0.7058 GB, free: 4.051 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.462, allocations: 146.4 kB / 0.7059 GB, free: 3.941 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.4622, allocations: 104.3 kB / 0.706 GB, free: 3.883 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4624, allocations: 367.5 kB / 0.7064 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.4628, allocations: 239.1 kB / 0.7066 GB, free: 3.461 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.4633, allocations: 410.1 kB / 0.707 GB, free: 3.164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009014/0.4642, allocations: 0.6745 MB / 0.7077 GB, free: 2.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4642, allocations: 2.156 kB / 0.7077 GB, free: 2.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001832/0.466, allocations: 0.9159 MB / 0.7085 GB, free: 2.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.4661, allocations: 9.484 kB / 0.7086 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.4661, allocations: 5.281 kB / 0.7086 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000892/0.467, allocations: 229.3 kB / 0.7088 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.4676, allocations: 119.9 kB / 0.7089 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005052/0.4727, allocations: 5.338 MB / 0.7141 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/0.4733, allocations: 30.12 kB / 0.7141 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.4733, allocations: 27.41 kB / 0.7142 GB, free: 13.59 MB / 0.4981 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.0003772/0.4737, allocations: 226.5 kB / 0.7144 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4738, allocations: 60.08 kB / 0.7144 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.4755, allocations: 0.779 MB / 0.7152 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.4755, allocations: 4.781 kB / 0.7152 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4755, allocations: 2.75 kB / 0.7152 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4755, allocations: 2.344 kB / 0.7152 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.4783, allocations: 1.503 MB / 0.7167 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.4783, allocations: 1.438 kB / 0.7167 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.4787, allocations: 71.97 kB / 0.7167 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007408/0.4795, allocations: 204.1 kB / 0.7169 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.4795, allocations: 12.5 kB / 0.7169 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005542/0.4851, allocations: 5.279 MB / 0.7221 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4851, allocations: 2.688 kB / 0.7221 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.4872, allocations: 1.126 MB / 0.7232 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003409/0.4876, allocations: 167.9 kB / 0.7234 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/0.4877, allocations: 17 kB / 0.7234 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000346/0.488, allocations: 23.94 kB / 0.7234 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.4881, allocations: 39.95 kB / 0.7234 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.4882, allocations: 13.56 kB / 0.7235 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004803/0.4887, allocations: 313 kB / 0.7238 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.31e-07/0.4887, allocations: 0 / 0.7238 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009361/0.4896, allocations: 166.5 kB / 0.7239 GB, free: 6.633 MB / 0.4981 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.0001824/0.4898, allocations: 116.5 kB / 0.724 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002014/0.4918, allocations: 1.063 MB / 0.7251 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4918, allocations: 1.375 kB / 0.7251 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.493, allocations: 0.6814 MB / 0.7257 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.4941, allocations: 182.7 kB / 0.7259 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.4966, allocations: 1.318 MB / 0.7272 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006684/0.4973, allocations: 0.9473 MB / 0.7281 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.4975, allocations: 39.19 kB / 0.7282 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of SimCode: time 9.02e-07/0.4975, allocations: 5.469 kB / 0.7282 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of Templates: time 0.01983/0.5173, allocations: 14.78 MB / 0.7426 GB, free: 12.5 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)