Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.005756/0.005756, allocations: 99.84 kB / 15.73 MB, free: 6.066 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.001278/0.001278, allocations: 188.8 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002016/0.002016, allocations: 301.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9255/0.9255, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 99.84 kB / 0.6814 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4061, allocations: 86.97 MB / 0.7664 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006492/0.4126, allocations: 5.533 MB / 0.7718 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003799/0.4164, allocations: 2.638 MB / 0.7744 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.4167, allocations: 27.81 kB / 0.7744 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.4184, allocations: 0.675 MB / 0.775 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00081/0.4193, allocations: 405.7 kB / 0.7754 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009206/0.4202, allocations: 411 kB / 0.7758 GB, free: 10.24 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000881/0.4211, allocations: 0.9591 MB / 0.7768 GB, free: 9.277 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005485/0.4216, allocations: 470.3 kB / 0.7772 GB, free: 8.82 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.422, allocations: 378.6 kB / 0.7776 GB, free: 8.449 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.4225, allocations: 402.4 kB / 0.778 GB, free: 8.055 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.373e-05/0.4226, allocations: 48 kB / 0.778 GB, free: 8.008 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.4232, allocations: 363.3 kB / 0.7783 GB, free: 7.652 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.4234, allocations: 247.3 kB / 0.7786 GB, free: 7.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.4237, allocations: 358.1 kB / 0.7789 GB, free: 7.059 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009746/0.4247, allocations: 0.9784 MB / 0.7799 GB, free: 6.082 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.4247, allocations: 0 / 0.7799 GB, free: 6.082 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4247, allocations: 0 / 0.7799 GB, free: 6.082 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.4247, allocations: 0 / 0.7799 GB, free: 6.082 MB / 0.545 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.001387/0.4261, allocations: 0.9884 MB / 0.7808 GB, free: 5.043 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.4261, allocations: 12.03 kB / 0.7809 GB, free: 5.031 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.4275, allocations: 208.2 kB / 0.7811 GB, free: 4.828 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.4282, allocations: 0.53 MB / 0.7816 GB, free: 4.262 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.4283, allocations: 41.36 kB / 0.7816 GB, free: 4.219 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.4284, allocations: 56.52 kB / 0.7817 GB, free: 4.164 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.4295, allocations: 0.8264 MB / 0.7825 GB, free: 3.262 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.4295, allocations: 7.938 kB / 0.7825 GB, free: 3.254 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.597e-05/0.4296, allocations: 23.98 kB / 0.7825 GB, free: 3.23 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/0.4297, allocations: 68.94 kB / 0.7826 GB, free: 3.164 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000831/0.4306, allocations: 0.5813 MB / 0.7831 GB, free: 2.578 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003853/0.4344, allocations: 4.574 MB / 0.7876 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.4349, allocations: 295.3 kB / 0.7879 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.4352, allocations: 225.3 kB / 0.7881 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.4352, allocations: 8.281 kB / 0.7881 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.4352, allocations: 34.84 kB / 0.7881 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 1.723e-06/0.4353, allocations: 0 / 0.7881 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005345/0.4406, allocations: 2.636 MB / 0.7907 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.4407, allocations: 63.39 kB / 0.7908 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/0.4411, allocations: 462 kB / 0.7912 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.4412, allocations: 37.7 kB / 0.7913 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.4414, allocations: 344.5 kB / 0.7916 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.4415, allocations: 158.7 kB / 0.7917 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.4417, allocations: 102.2 kB / 0.7918 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.4418, allocations: 362.8 kB / 0.7922 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.4422, allocations: 236.9 kB / 0.7924 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004454/0.4427, allocations: 406.5 kB / 0.7928 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008268/0.4435, allocations: 0.674 MB / 0.7934 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4435, allocations: 4 kB / 0.7935 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001617/0.4451, allocations: 0.9251 MB / 0.7944 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4452, allocations: 8 kB / 0.7944 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.4452, allocations: 8.656 kB / 0.7944 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007633/0.4459, allocations: 226.3 kB / 0.7946 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004949/0.4464, allocations: 115.8 kB / 0.7947 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004869/0.4513, allocations: 5.348 MB / 0.7999 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004573/0.4518, allocations: 36.16 kB / 0.8 GB, free: 216 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.4519, allocations: 20 kB / 0.8 GB, free: 196 kB / 0.5606 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.0003108/0.4522, allocations: 229.6 kB / 0.8002 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.912e-05/0.4523, allocations: 63.56 kB / 0.8003 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.4537, allocations: 0.7743 MB / 0.801 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4537, allocations: 4 kB / 0.801 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4537, allocations: 0 / 0.801 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4537, allocations: 0 / 0.801 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.456, allocations: 1.501 MB / 0.8025 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.456, allocations: 3.984 kB / 0.8025 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.4564, allocations: 67.89 kB / 0.8025 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006587/0.4571, allocations: 206.5 kB / 0.8027 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.4571, allocations: 15.98 kB / 0.8028 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004541/0.4616, allocations: 5.262 MB / 0.8079 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4617, allocations: 7.969 kB / 0.8079 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.4634, allocations: 1.14 MB / 0.809 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.4636, allocations: 172.7 kB / 0.8092 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.775e-05/0.4637, allocations: 11.94 kB / 0.8092 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.4641, allocations: 27.97 kB / 0.8092 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.4642, allocations: 39.95 kB / 0.8093 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.4642, allocations: 12 kB / 0.8093 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003164/0.4645, allocations: 310.9 kB / 0.8096 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4645, allocations: 0 / 0.8096 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000633/0.4652, allocations: 172 kB / 0.8097 GB, free: 5.59 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.0001507/0.4653, allocations: 115.2 kB / 0.8098 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001502/0.4668, allocations: 1.012 MB / 0.8108 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4668, allocations: 0 / 0.8108 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008897/0.4677, allocations: 0.6929 MB / 0.8115 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/0.4686, allocations: 186.3 kB / 0.8117 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.4704, allocations: 1.276 MB / 0.8129 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.4709, allocations: 0.9533 MB / 0.8139 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003046/0.4712, allocations: 117 kB / 0.814 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.4713, allocations: 35.44 kB / 0.814 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of SimCode: time 2.955e-06/0.4713, allocations: 4 kB / 0.814 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of Templates: time 0.01443/0.4857, allocations: 8.977 MB / 0.8228 GB, free: 8.211 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1)