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.001727/0.001727, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.00188/0.00188, allocations: 195 kB / 16.14 MB, free: 6.695 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.428/1.428, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002605/0.002605, allocations: 275.1 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.087/1.087, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002752/0.002752, allocations: 99.62 kB / 0.6057 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1706, allocations: 89.16 MB / 0.6928 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007652/0.1783, allocations: 5.469 MB / 0.6981 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004395/0.1827, allocations: 2.635 MB / 0.7007 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.1829, allocations: 23.81 kB / 0.7007 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.1846, allocations: 0.6345 MB / 0.7014 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008107/0.1854, allocations: 386.1 kB / 0.7017 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008377/0.1863, allocations: 358.5 kB / 0.7021 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001287/0.1876, allocations: 1.248 MB / 0.7033 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007292/0.1883, allocations: 450.3 kB / 0.7037 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.1888, allocations: 338.5 kB / 0.704 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005298/0.1893, allocations: 406.5 kB / 0.7044 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.379e-05/0.1894, allocations: 32 kB / 0.7045 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007629/0.1902, allocations: 443.1 kB / 0.7049 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.1905, allocations: 227.3 kB / 0.7051 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003596/0.1908, allocations: 330.3 kB / 0.7054 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1919, allocations: 0.9733 MB / 0.7064 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1919, allocations: 3.938 kB / 0.7064 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.92e-07/0.1919, allocations: 0 / 0.7064 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.192, allocations: 0 / 0.7064 GB, free: 6.922 MB / 0.4981 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.00168/0.1936, allocations: 0.966 MB / 0.7073 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1937, allocations: 16.03 kB / 0.7073 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/0.1951, allocations: 195.8 kB / 0.7075 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.1959, allocations: 490.4 kB / 0.708 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.1959, allocations: 41.36 kB / 0.708 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.1961, allocations: 56.55 kB / 0.7081 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.1974, allocations: 0.8279 MB / 0.7089 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.1974, allocations: 0 / 0.7089 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.1975, allocations: 23.98 kB / 0.7089 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002086/0.1977, allocations: 72.94 kB / 0.709 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009659/0.1987, allocations: 0.5735 MB / 0.7095 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005006/0.2037, allocations: 4.577 MB / 0.714 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.2042, allocations: 303.2 kB / 0.7143 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.2046, allocations: 225.2 kB / 0.7145 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.2046, allocations: 8.266 kB / 0.7145 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.2047, allocations: 34.84 kB / 0.7146 GB, free: 14 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/0.2047, allocations: 7.938 kB / 0.7146 GB, free: 14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.006056/0.2107, allocations: 2.619 MB / 0.7171 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.2108, allocations: 55.41 kB / 0.7172 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/0.2113, allocations: 469.8 kB / 0.7176 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.979e-05/0.2114, allocations: 29.7 kB / 0.7176 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.2117, allocations: 343.6 kB / 0.718 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.2118, allocations: 145.9 kB / 0.7181 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.212, allocations: 102.2 kB / 0.7182 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2122, allocations: 362.8 kB / 0.7186 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/0.2126, allocations: 248.9 kB / 0.7188 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.2131, allocations: 402.5 kB / 0.7192 GB, free: 9.012 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009641/0.2141, allocations: 0.6778 MB / 0.7198 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2141, allocations: 0 / 0.7198 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001782/0.2159, allocations: 0.9212 MB / 0.7207 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.2159, allocations: 8 kB / 0.7207 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.2159, allocations: 4 kB / 0.7207 GB, free: 7.312 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008531/0.2168, allocations: 230.5 kB / 0.721 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.2173, allocations: 111.8 kB / 0.7211 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005543/0.2229, allocations: 4.935 MB / 0.7259 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.2233, allocations: 36.03 kB / 0.7259 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/0.2234, allocations: 20 kB / 0.7259 GB, free: 1.566 MB / 0.5137 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.0003237/0.2237, allocations: 226.2 kB / 0.7262 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.2238, allocations: 55.34 kB / 0.7262 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.2255, allocations: 0.7697 MB / 0.727 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2255, allocations: 4 kB / 0.727 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2255, allocations: 4 kB / 0.727 GB, free: 500 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2255, allocations: 7.922 kB / 0.727 GB, free: 492 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.2281, allocations: 1.498 MB / 0.7284 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.2282, allocations: 4 kB / 0.7284 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003836/0.2285, allocations: 63.89 kB / 0.7285 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007675/0.2293, allocations: 218.7 kB / 0.7287 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.2294, allocations: 8 kB / 0.7287 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.2347, allocations: 4.88 MB / 0.7335 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.2347, allocations: 7.938 kB / 0.7335 GB, free: 9.316 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.2367, allocations: 1.131 MB / 0.7346 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.237, allocations: 172.4 kB / 0.7348 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.2371, allocations: 8.062 kB / 0.7348 GB, free: 7.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/0.2374, allocations: 27.97 kB / 0.7348 GB, free: 7.914 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-05/0.2375, allocations: 43.83 kB / 0.7348 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.2376, allocations: 8 kB / 0.7349 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004597/0.238, allocations: 314.9 kB / 0.7352 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.238, allocations: 0 / 0.7352 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008121/0.2388, allocations: 168 kB / 0.7353 GB, free: 7.395 MB / 0.5294 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.0001767/0.239, allocations: 115.2 kB / 0.7354 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001697/0.2407, allocations: 1.004 MB / 0.7364 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2407, allocations: 8.062 kB / 0.7364 GB, free: 6.223 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.2418, allocations: 0.6762 MB / 0.7371 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008995/0.2427, allocations: 159.2 kB / 0.7372 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.2451, allocations: 1.519 MB / 0.7387 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.2457, allocations: 0.9455 MB / 0.7396 GB, free: 2.809 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003799/0.2461, allocations: 109 kB / 0.7397 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2462, allocations: 43.44 kB / 0.7398 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of SimCode: time 4.91e-07/0.2462, allocations: 0 / 0.7398 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of Templates: time 0.01597/0.2622, allocations: 8.524 MB / 0.7481 GB, free: 10.24 MB / 0.545 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)