Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008763/0.0008762, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0009625/0.0009624, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.3 MB / 240 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001749/0.001749, allocations: 267 kB / 291.3 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004282, allocations: 18.86 kB / 0.598 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1845, allocations: 88.53 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01502/0.1995, allocations: 13.33 MB / 0.6975 GB, free: 2.078 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.2128, allocations: 9.619 MB / 0.7069 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.2142, allocations: 51.62 kB / 0.7069 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008527/0.215, allocations: 273.8 kB / 0.7072 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004266/0.2193, allocations: 1.457 MB / 0.7086 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.2209, allocations: 0.5132 MB / 0.7091 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003592/0.2245, allocations: 2.902 MB / 0.712 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003081/0.2275, allocations: 1.812 MB / 0.7137 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.2296, allocations: 1.289 MB / 0.715 GB, free: 112 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001544/0.2312, allocations: 1.043 MB / 0.716 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.2313, allocations: 72 kB / 0.7161 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.2325, allocations: 431.4 kB / 0.7165 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004953/0.233, allocations: 0.4984 MB / 0.717 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003777/0.2333, allocations: 352.8 kB / 0.7173 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.2354, allocations: 2.123 MB / 0.7194 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2354, allocations: 0 / 0.7194 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2354, allocations: 0 / 0.7194 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.333e-05/0.2355, allocations: 0 / 0.7194 GB, free: 11.59 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003184/0.2387, allocations: 1.859 MB / 0.7212 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.2387, allocations: 12.03 kB / 0.7212 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.2493, allocations: 2.17 MB / 0.7233 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002912/0.2523, allocations: 1.162 MB / 0.7245 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.56e-05/0.2524, allocations: 86.31 kB / 0.7245 GB, free: 6.184 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/0.2526, allocations: 124 kB / 0.7247 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005744/0.2584, allocations: 2.679 MB / 0.7273 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.469e-05/0.2585, allocations: 11.89 kB / 0.7273 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001646/0.2586, allocations: 55.97 kB / 0.7273 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005836/0.2592, allocations: 198.1 kB / 0.7275 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007004/0.2662, allocations: 2.83 MB / 0.7303 GB, free: 136 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.2809, allocations: 10.55 MB / 0.7406 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0059/0.2869, allocations: 2.391 MB / 0.7429 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002889/0.2898, allocations: 1.303 MB / 0.7442 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 6.962e-05/0.2899, allocations: 9 kB / 0.7442 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.2899, allocations: 43.56 kB / 0.7443 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=89): time 2.916e-06/0.2899, allocations: 0 / 0.7443 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of matching and sorting (n=153): time 0.05405/0.344, allocations: 16.51 MB / 0.7604 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.3441, allocations: 68.72 kB / 0.7604 GB, free: 484 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001515/0.3456, allocations: 1.156 MB / 0.7616 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001539/0.3458, allocations: 53.7 kB / 0.7616 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005223/0.3463, allocations: 0.7475 MB / 0.7624 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004591/0.3468, allocations: 0.5082 MB / 0.7629 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.3469, allocations: 32 kB / 0.7629 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.347, allocations: 361.9 kB / 0.7632 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/0.3502, allocations: 1.526 MB / 0.7647 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003346/0.3536, allocations: 1.795 MB / 0.7665 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003322/0.3569, allocations: 1.65 MB / 0.7681 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3569, allocations: 0 / 0.7681 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01236/0.3693, allocations: 5.297 MB / 0.7733 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.3694, allocations: 8 kB / 0.7733 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.3694, allocations: 11.94 kB / 0.7733 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00646/0.3759, allocations: 1.889 MB / 0.7751 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.3777, allocations: 427.3 kB / 0.7755 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3703/0.748, allocations: 22.14 MB / 0.7971 GB, free: 74.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002523/0.7506, allocations: 314.3 kB / 0.7974 GB, free: 74.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/0.7508, allocations: 70.09 kB / 0.7975 GB, free: 74.64 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 17,(3,100.0%) 17,(3,100.0%) 15,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008815/0.7517, allocations: 457.6 kB / 0.7979 GB, free: 74.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.7519, allocations: 182.8 kB / 0.7981 GB, free: 74.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01247/0.7644, allocations: 5.345 MB / 0.8033 GB, free: 72.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.7645, allocations: 14.22 kB / 0.8034 GB, free: 72.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-05/0.7645, allocations: 21.61 kB / 0.8034 GB, free: 72.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.7646, allocations: 9.734 kB / 0.8034 GB, free: 72.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.78, allocations: 7.451 MB / 0.8107 GB, free: 69.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.7801, allocations: 2.969 kB / 0.8107 GB, free: 69.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.7815, allocations: 367.9 kB / 0.811 GB, free: 69.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005387/0.7869, allocations: 1.702 MB / 0.8127 GB, free: 68.99 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.7871, allocations: 42.47 kB / 0.8127 GB, free: 68.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02135/0.8085, allocations: 21.35 MB / 0.8336 GB, free: 51.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.8085, allocations: 3.938 kB / 0.8336 GB, free: 51.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.8189, allocations: 4.909 MB / 0.8384 GB, free: 48.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.82, allocations: 494.8 kB / 0.8388 GB, free: 48.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004569/0.8205, allocations: 27.98 kB / 0.8389 GB, free: 48.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/0.8224, allocations: 327.5 kB / 0.8392 GB, free: 47.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005307/0.823, allocations: 149 kB / 0.8393 GB, free: 47.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.8231, allocations: 58.12 kB / 0.8394 GB, free: 47.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001093/0.8242, allocations: 0.7782 MB / 0.8401 GB, free: 46.92 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8242, allocations: 0 / 0.8401 GB, free: 46.92 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002419/0.8267, allocations: 0.6562 MB / 0.8408 GB, free: 46.27 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003312/0.827, allocations: 143 kB / 0.8409 GB, free: 46.12 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009255/0.8363, allocations: 5.189 MB / 0.846 GB, free: 40.85 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.8363, allocations: 4 kB / 0.846 GB, free: 40.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00592/0.8422, allocations: 3.367 MB / 0.8493 GB, free: 37.38 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/0.8454, allocations: 0.5141 MB / 0.8498 GB, free: 36.88 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008346/0.8538, allocations: 4.865 MB / 0.8545 GB, free: 31.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001387/0.8552, allocations: 1.567 MB / 0.8561 GB, free: 30.38 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001806/0.857, allocations: 391.2 kB / 0.8564 GB, free: 30 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/0.8574, allocations: 107.4 kB / 0.8565 GB, free: 29.89 MB / 0.5606 GB Notification: Performance of SimCode: time 1.402e-06/0.8575, allocations: 0 / 0.8565 GB, free: 29.89 MB / 0.5606 GB Notification: Performance of Templates: time 0.06447/0.9219, allocations: 41.45 MB / 0.897 GB, free: 4.953 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1)