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.005116/0.005116, allocations: 102.1 kB / 15.73 MB, free: 6.043 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.001244/0.001244, allocations: 188.1 kB / 16.67 MB, free: 5.977 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 290.3 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.957/0.957, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 96.08 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1486, allocations: 86.99 MB / 0.7664 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00736/0.156, allocations: 5.451 MB / 0.7717 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004147/0.1602, allocations: 2.623 MB / 0.7743 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003689/0.1606, allocations: 23.81 kB / 0.7743 GB, free: 312 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.3224/0.483, allocations: 0.6654 MB / 0.775 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.4841, allocations: 431.5 kB / 0.7754 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009539/0.4851, allocations: 389.2 kB / 0.7757 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008602/0.486, allocations: 0.956 MB / 0.7767 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006103/0.4866, allocations: 463.4 kB / 0.7771 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004217/0.487, allocations: 376.5 kB / 0.7775 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004603/0.4875, allocations: 407.3 kB / 0.7779 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.738e-05/0.4876, allocations: 47.59 kB / 0.7779 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005756/0.4882, allocations: 361.1 kB / 0.7782 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002368/0.4884, allocations: 248.7 kB / 0.7785 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.4887, allocations: 348.8 kB / 0.7788 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008635/0.4896, allocations: 0.9735 MB / 0.7798 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.4896, allocations: 1.062 kB / 0.7798 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4896, allocations: 0 / 0.7798 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.4896, allocations: 2.906 kB / 0.7798 GB, free: 8.441 MB / 0.5606 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.001268/0.4909, allocations: 0.9712 MB / 0.7807 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.4909, allocations: 9.625 kB / 0.7807 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001328/0.4923, allocations: 197.3 kB / 0.7809 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007562/0.493, allocations: 0.5065 MB / 0.7814 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.4931, allocations: 40.47 kB / 0.7815 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.4933, allocations: 64.89 kB / 0.7815 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.4944, allocations: 0.8241 MB / 0.7823 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.4944, allocations: 5.938 kB / 0.7823 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.4945, allocations: 25.2 kB / 0.7823 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.4947, allocations: 68.88 kB / 0.7824 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00095/0.4956, allocations: 0.5701 MB / 0.783 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003636/0.4993, allocations: 4.563 MB / 0.7874 GB, free: 19.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.4997, allocations: 299.7 kB / 0.7877 GB, free: 19.18 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.5, allocations: 227 kB / 0.7879 GB, free: 19.09 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.5, allocations: 3.812 kB / 0.7879 GB, free: 19.09 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.5, allocations: 38.67 kB / 0.788 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.513e-06/0.5, allocations: 0 / 0.788 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.004809/0.5048, allocations: 2.63 MB / 0.7905 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.5049, allocations: 56.66 kB / 0.7906 GB, free: 17.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.5053, allocations: 456.1 kB / 0.791 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.5054, allocations: 31.42 kB / 0.7911 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.5055, allocations: 345.3 kB / 0.7914 GB, free: 17.07 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/0.5056, allocations: 145.1 kB / 0.7915 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.5058, allocations: 105.5 kB / 0.7916 GB, free: 16.89 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5059, allocations: 363.6 kB / 0.792 GB, free: 16.56 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.5062, allocations: 239.1 kB / 0.7922 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.5066, allocations: 408.6 kB / 0.7926 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006778/0.5073, allocations: 0.6764 MB / 0.7933 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5073, allocations: 3.375 kB / 0.7933 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001444/0.5087, allocations: 0.9192 MB / 0.7942 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.5088, allocations: 8.047 kB / 0.7942 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.5088, allocations: 7.031 kB / 0.7942 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007268/0.5095, allocations: 225.2 kB / 0.7944 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.51, allocations: 113.4 kB / 0.7945 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004656/0.5147, allocations: 5.334 MB / 0.7997 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.515, allocations: 38.19 kB / 0.7997 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-05/0.5151, allocations: 27.5 kB / 0.7998 GB, free: 10.61 MB / 0.5762 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.0002732/0.5154, allocations: 219.1 kB / 0.8 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.634e-05/0.5155, allocations: 62.41 kB / 0.8 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.517, allocations: 0.7757 MB / 0.8008 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.517, allocations: 4.062 kB / 0.8008 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.517, allocations: 3.438 kB / 0.8008 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.517, allocations: 2.062 kB / 0.8008 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.5195, allocations: 1.494 MB / 0.8023 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.5195, allocations: 1.281 kB / 0.8023 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.5199, allocations: 71.47 kB / 0.8023 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000748/0.5206, allocations: 205 kB / 0.8025 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.5207, allocations: 8.297 kB / 0.8025 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.5258, allocations: 5.276 MB / 0.8077 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5258, allocations: 2.891 kB / 0.8077 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.5275, allocations: 1.129 MB / 0.8088 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.5278, allocations: 168 kB / 0.8089 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.5278, allocations: 18.25 kB / 0.809 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.5281, allocations: 22.81 kB / 0.809 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.5282, allocations: 43.34 kB / 0.809 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.5283, allocations: 18.98 kB / 0.809 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003464/0.5286, allocations: 312 kB / 0.8093 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5286, allocations: 1.094 kB / 0.8093 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000644/0.5293, allocations: 166.7 kB / 0.8095 GB, free: 3.672 MB / 0.5762 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.0001361/0.5294, allocations: 118.4 kB / 0.8096 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001514/0.5309, allocations: 1.013 MB / 0.8106 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.531, allocations: 1.188 kB / 0.8106 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009077/0.5319, allocations: 0.6789 MB / 0.8113 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000818/0.5327, allocations: 186 kB / 0.8114 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.5346, allocations: 1.255 MB / 0.8127 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.5352, allocations: 0.9504 MB / 0.8136 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000329/0.5356, allocations: 116.4 kB / 0.8137 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.5357, allocations: 37.33 kB / 0.8137 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.5357, allocations: 4 kB / 0.8137 GB, free: 0.9922 MB / 0.5762 GB Notification: Performance of Templates: time 0.01481/0.5505, allocations: 8.961 MB / 0.8225 GB, free: 14.29 MB / 0.5919 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)