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.001493/0.001493, 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.001783/0.001783, allocations: 188.8 kB / 16.25 MB, free: 6.625 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.371/1.371, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 290.8 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9498/0.9498, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 96.48 kB / 0.5947 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1496, allocations: 86.98 MB / 0.6796 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006631/0.1563, allocations: 5.477 MB / 0.685 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.1601, allocations: 2.603 MB / 0.6875 GB, free: 8.973 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.1604, allocations: 15.88 kB / 0.6875 GB, free: 8.957 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0016/0.162, allocations: 0.6346 MB / 0.6882 GB, free: 8.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007877/0.1628, allocations: 378.1 kB / 0.6885 GB, free: 7.949 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008098/0.1636, allocations: 357.9 kB / 0.6889 GB, free: 7.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009068/0.1646, allocations: 0.9591 MB / 0.6898 GB, free: 6.641 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006688/0.1652, allocations: 0.5102 MB / 0.6903 GB, free: 6.129 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004721/0.1657, allocations: 370.5 kB / 0.6907 GB, free: 5.766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.1662, allocations: 414.5 kB / 0.691 GB, free: 5.359 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.537e-05/0.1662, allocations: 48 kB / 0.6911 GB, free: 5.312 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005324/0.1668, allocations: 367.2 kB / 0.6914 GB, free: 4.953 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.167, allocations: 255.2 kB / 0.6917 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.1673, allocations: 346.3 kB / 0.692 GB, free: 4.363 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008851/0.1682, allocations: 0.9928 MB / 0.693 GB, free: 3.367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1682, allocations: 4 kB / 0.693 GB, free: 3.363 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1682, allocations: 0 / 0.693 GB, free: 3.363 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1682, allocations: 3.938 kB / 0.693 GB, free: 3.359 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.001411/0.1696, allocations: 0.962 MB / 0.6939 GB, free: 2.344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.1697, allocations: 8.031 kB / 0.6939 GB, free: 2.336 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001333/0.171, allocations: 199.8 kB / 0.6941 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.1717, allocations: 486.6 kB / 0.6946 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.1717, allocations: 33.38 kB / 0.6946 GB, free: 1.598 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.1718, allocations: 56.45 kB / 0.6947 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.173, allocations: 0.8363 MB / 0.6955 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.173, allocations: 7.938 kB / 0.6955 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.978e-05/0.1731, allocations: 20 kB / 0.6955 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001989/0.1733, allocations: 72.94 kB / 0.6956 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008541/0.1742, allocations: 0.5658 MB / 0.6961 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004136/0.1783, allocations: 4.585 MB / 0.7006 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.1788, allocations: 303.2 kB / 0.7009 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.1791, allocations: 225.3 kB / 0.7011 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1791, allocations: 4.281 kB / 0.7011 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.1792, allocations: 34.84 kB / 0.7012 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.382e-06/0.1792, allocations: 0 / 0.7012 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005424/0.1846, allocations: 2.631 MB / 0.7037 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1847, allocations: 55.41 kB / 0.7038 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004617/0.1851, allocations: 465.8 kB / 0.7042 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.1852, allocations: 37.7 kB / 0.7043 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.1854, allocations: 335.7 kB / 0.7046 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1855, allocations: 142 kB / 0.7047 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.1857, allocations: 110.1 kB / 0.7048 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1858, allocations: 358.8 kB / 0.7052 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1862, allocations: 241 kB / 0.7054 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.1867, allocations: 406.4 kB / 0.7058 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008379/0.1875, allocations: 0.6779 MB / 0.7065 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1875, allocations: 4 kB / 0.7065 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001631/0.1892, allocations: 0.9171 MB / 0.7074 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1892, allocations: 8.656 kB / 0.7074 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1892, allocations: 11.98 kB / 0.7074 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007812/0.19, allocations: 222.4 kB / 0.7076 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005143/0.1905, allocations: 119.8 kB / 0.7077 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004949/0.1955, allocations: 5.336 MB / 0.7129 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004106/0.1959, allocations: 27.97 kB / 0.7129 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.1959, allocations: 24 kB / 0.713 GB, free: 13.61 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.0002704/0.1962, allocations: 229.6 kB / 0.7132 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.32e-05/0.1963, allocations: 59.28 kB / 0.7132 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.1978, allocations: 0.7773 MB / 0.714 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1978, allocations: 7.938 kB / 0.714 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.1979, allocations: 8 kB / 0.714 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1979, allocations: 144 / 0.714 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002339/0.2002, allocations: 1.49 MB / 0.7155 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2002, allocations: 0 / 0.7155 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.2006, allocations: 79.86 kB / 0.7155 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006861/0.2013, allocations: 206.6 kB / 0.7157 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.2014, allocations: 8 kB / 0.7157 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004752/0.2061, allocations: 5.274 MB / 0.7209 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2061, allocations: 64 / 0.7209 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.2079, allocations: 1.135 MB / 0.722 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.2081, allocations: 168.4 kB / 0.7222 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.2082, allocations: 15.94 kB / 0.7222 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.2085, allocations: 24.03 kB / 0.7222 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.2086, allocations: 35.95 kB / 0.7222 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.2087, allocations: 12 kB / 0.7222 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003198/0.209, allocations: 314.8 kB / 0.7225 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.209, allocations: 4 kB / 0.7226 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006457/0.2097, allocations: 164 kB / 0.7227 GB, free: 3.016 MB / 0.5137 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.0001672/0.2098, allocations: 127.1 kB / 0.7228 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001697/0.2115, allocations: 1.056 MB / 0.7239 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.2115, allocations: 128 / 0.7239 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009346/0.2125, allocations: 0.685 MB / 0.7245 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009359/0.2134, allocations: 178.8 kB / 0.7247 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.2156, allocations: 1.506 MB / 0.7262 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.2162, allocations: 0.9494 MB / 0.7271 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003629/0.2165, allocations: 120.9 kB / 0.7272 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.901e-05/0.2166, allocations: 35.44 kB / 0.7272 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of SimCode: time 2.41e-07/0.2166, allocations: 0 / 0.7272 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of Templates: time 0.01556/0.2322, allocations: 8.909 MB / 0.7359 GB, free: 5.418 MB / 0.5294 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)