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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001114/0.001114, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.283/1.283, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00202/0.00202, allocations: 274.9 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9784/0.9784, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 92.39 kB / 0.5945 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1459, allocations: 86.99 MB / 0.6795 GB, free: 1.156 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006322/0.1523, allocations: 5.468 MB / 0.6848 GB, free: 11.68 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003727/0.156, allocations: 2.627 MB / 0.6874 GB, free: 9.047 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1562, allocations: 19.88 kB / 0.6874 GB, free: 9.027 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.1578, allocations: 0.6423 MB / 0.688 GB, free: 8.383 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006726/0.1584, allocations: 378.1 kB / 0.6884 GB, free: 8.012 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007216/0.1592, allocations: 358.2 kB / 0.6887 GB, free: 7.664 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009851/0.1602, allocations: 1.256 MB / 0.6899 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006095/0.1608, allocations: 450 kB / 0.6904 GB, free: 5.961 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.1611, allocations: 330.6 kB / 0.6907 GB, free: 5.637 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004408/0.1616, allocations: 406.4 kB / 0.6911 GB, free: 5.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.698e-05/0.1617, allocations: 36 kB / 0.6911 GB, free: 5.203 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000603/0.1623, allocations: 439.1 kB / 0.6915 GB, free: 4.773 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.1625, allocations: 231.4 kB / 0.6917 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002944/0.1628, allocations: 334.2 kB / 0.6921 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008575/0.1637, allocations: 0.9772 MB / 0.693 GB, free: 3.238 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1637, allocations: 0 / 0.693 GB, free: 3.238 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1637, allocations: 0 / 0.693 GB, free: 3.238 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1637, allocations: 0 / 0.693 GB, free: 3.238 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.001457/0.1652, allocations: 0.9621 MB / 0.694 GB, free: 2.227 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1652, allocations: 19.95 kB / 0.694 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.1666, allocations: 191.8 kB / 0.6942 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006128/0.1672, allocations: 482.5 kB / 0.6946 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1672, allocations: 41.36 kB / 0.6947 GB, free: 1.473 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1674, allocations: 60.45 kB / 0.6947 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.1684, allocations: 0.8363 MB / 0.6955 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.1685, allocations: 0 / 0.6955 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.696e-05/0.1685, allocations: 23.98 kB / 0.6956 GB, free: 484 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000194/0.1687, allocations: 72.88 kB / 0.6956 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.1696, allocations: 0.5698 MB / 0.6962 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003993/0.1736, allocations: 4.577 MB / 0.7006 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.174, allocations: 299.3 kB / 0.7009 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002926/0.1744, allocations: 221.3 kB / 0.7011 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1744, allocations: 12.2 kB / 0.7012 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1744, allocations: 34.84 kB / 0.7012 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.393e-06/0.1744, allocations: 0 / 0.7012 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005363/0.1798, allocations: 2.639 MB / 0.7038 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.1798, allocations: 55.41 kB / 0.7038 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004429/0.1803, allocations: 461.8 kB / 0.7043 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.1803, allocations: 33.7 kB / 0.7043 GB, free: 7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.1805, allocations: 343.6 kB / 0.7046 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.936e-05/0.1807, allocations: 142 kB / 0.7048 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1808, allocations: 106.1 kB / 0.7049 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.181, allocations: 366.8 kB / 0.7052 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.1813, allocations: 237 kB / 0.7054 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004553/0.1818, allocations: 410.4 kB / 0.7058 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008375/0.1826, allocations: 0.6778 MB / 0.7065 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1826, allocations: 4 kB / 0.7065 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001655/0.1843, allocations: 0.9174 MB / 0.7074 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1843, allocations: 4 kB / 0.7074 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1843, allocations: 8 kB / 0.7074 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007995/0.1851, allocations: 226.7 kB / 0.7076 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005192/0.1857, allocations: 111.8 kB / 0.7077 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004624/0.1903, allocations: 4.935 MB / 0.7125 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.1907, allocations: 36.03 kB / 0.7126 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.1908, allocations: 20 kB / 0.7126 GB, free: 13.9 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.0002664/0.191, allocations: 225.5 kB / 0.7128 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.1911, allocations: 55.34 kB / 0.7129 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.1926, allocations: 0.781 MB / 0.7136 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1926, allocations: 4 kB / 0.7136 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1926, allocations: 4 kB / 0.7136 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1926, allocations: 3.984 kB / 0.7136 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.1949, allocations: 1.494 MB / 0.7151 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.195, allocations: 0 / 0.7151 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.1953, allocations: 67.89 kB / 0.7152 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006722/0.196, allocations: 202.6 kB / 0.7154 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.1961, allocations: 15.98 kB / 0.7154 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004417/0.2005, allocations: 4.87 MB / 0.7201 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.2005, allocations: 11.95 kB / 0.7201 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.2022, allocations: 1.127 MB / 0.7212 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.2024, allocations: 172.5 kB / 0.7214 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.178e-05/0.2025, allocations: 19.94 kB / 0.7214 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.2028, allocations: 23.97 kB / 0.7214 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.2029, allocations: 35.89 kB / 0.7215 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.203, allocations: 12 kB / 0.7215 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003148/0.2033, allocations: 314.9 kB / 0.7218 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2033, allocations: 0 / 0.7218 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006214/0.2039, allocations: 168 kB / 0.7219 GB, free: 3.738 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.000143/0.2041, allocations: 123.1 kB / 0.7221 GB, free: 3.609 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001502/0.2056, allocations: 1.012 MB / 0.7231 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2056, allocations: 0 / 0.7231 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009116/0.2065, allocations: 0.6838 MB / 0.7237 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008451/0.2074, allocations: 166.1 kB / 0.7239 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.2093, allocations: 1.504 MB / 0.7253 GB, free: 124 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.2098, allocations: 0.9494 MB / 0.7263 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000335/0.2101, allocations: 113 kB / 0.7264 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.579e-05/0.2102, allocations: 35.44 kB / 0.7264 GB, free: 15 MB / 0.5294 GB Notification: Performance of SimCode: time 2.9e-07/0.2102, allocations: 0 / 0.7264 GB, free: 15 MB / 0.5294 GB Notification: Performance of Templates: time 0.01331/0.2235, allocations: 8.542 MB / 0.7348 GB, free: 6.566 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)