Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.000873, allocations: 89.73 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.001066/0.001066, 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.504/1.504, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 271 kB / 291.3 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9675/0.9675, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004431, allocations: 12.81 kB / 0.598 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1769, allocations: 88.54 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02106/0.198, allocations: 20.41 MB / 0.7044 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02725/0.2253, allocations: 16.41 MB / 0.7204 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003925/0.2292, allocations: 103.4 kB / 0.7205 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.2321, allocations: 0.5579 MB / 0.7211 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.2438, allocations: 2.87 MB / 0.7239 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003869/0.2477, allocations: 0.9541 MB / 0.7248 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01001/0.2577, allocations: 5.928 MB / 0.7306 GB, free: 132 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004496/0.2623, allocations: 2.075 MB / 0.7326 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004599/0.2669, allocations: 1.965 MB / 0.7345 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005141/0.2721, allocations: 2.218 MB / 0.7367 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001178/0.2733, allocations: 176 kB / 0.7369 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.2754, allocations: 0.4994 MB / 0.7374 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.2766, allocations: 0.9575 MB / 0.7383 GB, free: 8.156 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.2779, allocations: 0.6873 MB / 0.739 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005348/0.2833, allocations: 3.935 MB / 0.7428 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.2833, allocations: 0 / 0.7428 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.846e-06/0.2833, allocations: 0 / 0.7428 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001891/0.2835, allocations: 0 / 0.7428 GB, free: 3.516 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.009973/0.2935, allocations: 4.107 MB / 0.7468 GB, free: 15.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2936, allocations: 12.03 kB / 0.7468 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01588/0.3095, allocations: 3.366 MB / 0.7501 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00516/0.3147, allocations: 1.995 MB / 0.7521 GB, free: 9.848 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005087/0.3152, allocations: 461.7 kB / 0.7525 GB, free: 9.332 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/0.3164, allocations: 236 kB / 0.7527 GB, free: 9.102 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/0.3285, allocations: 4.853 MB / 0.7575 GB, free: 4.102 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.3285, allocations: 0 / 0.7575 GB, free: 4.102 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003309/0.3289, allocations: 99.98 kB / 0.7576 GB, free: 4.004 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002083/0.3291, allocations: 176.8 kB / 0.7577 GB, free: 3.828 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.3428, allocations: 5.3 MB / 0.7629 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3412/0.6841, allocations: 14.59 MB / 0.7772 GB, free: 84.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.6952, allocations: 3.669 MB / 0.7807 GB, free: 84.02 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005864/0.7011, allocations: 1.585 MB / 0.7823 GB, free: 83.84 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001865/0.7013, allocations: 22.55 kB / 0.7823 GB, free: 83.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005516/0.7068, allocations: 1.919 MB / 0.7842 GB, free: 83.22 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 6.132e-06/0.7069, allocations: 3.828 kB / 0.7842 GB, free: 83.22 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1172/0.8241, allocations: 34.09 MB / 0.8175 GB, free: 70.88 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.8242, allocations: 0.4903 MB / 0.818 GB, free: 70.28 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002877/0.8271, allocations: 2.275 MB / 0.8202 GB, free: 67.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003561/0.8275, allocations: 77.7 kB / 0.8203 GB, free: 67.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008802/0.8284, allocations: 1.429 MB / 0.8217 GB, free: 66.47 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000722/0.8291, allocations: 0.8265 MB / 0.8225 GB, free: 65.65 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.8294, allocations: 52 kB / 0.8225 GB, free: 65.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.8295, allocations: 394.7 kB / 0.8229 GB, free: 65.21 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004445/0.8339, allocations: 2.105 MB / 0.8249 GB, free: 63.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004666/0.8386, allocations: 2.411 MB / 0.8273 GB, free: 60.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004739/0.8434, allocations: 2.292 MB / 0.8295 GB, free: 58.26 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.8435, allocations: 4 kB / 0.8295 GB, free: 58.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01719/0.8606, allocations: 6.879 MB / 0.8363 GB, free: 51.29 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.73e-05/0.8608, allocations: 148.5 kB / 0.8364 GB, free: 51.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.8608, allocations: 4 kB / 0.8364 GB, free: 51.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008666/0.8695, allocations: 2.955 MB / 0.8393 GB, free: 48.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/0.8722, allocations: 0.5657 MB / 0.8398 GB, free: 47.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03183/0.904, allocations: 17.31 MB / 0.8567 GB, free: 30.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00404/0.9081, allocations: 423.5 kB / 0.8572 GB, free: 29.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005114/0.9086, allocations: 91.97 kB / 0.8572 GB, free: 29.58 MB / 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: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.002027/0.9107, allocations: 0.7156 MB / 0.8579 GB, free: 28.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009949/0.9117, allocations: 324.2 kB / 0.8582 GB, free: 28.54 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009845/0.9127, allocations: 380.1 kB / 0.8586 GB, free: 28.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/0.9127, allocations: 24 kB / 0.8586 GB, free: 28.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-05/0.9128, allocations: 15.98 kB / 0.8586 GB, free: 28.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/0.9128, allocations: 11.95 kB / 0.8587 GB, free: 28.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00606/0.9189, allocations: 3.622 MB / 0.8622 GB, free: 24.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.463e-05/0.9189, allocations: 3.281 kB / 0.8622 GB, free: 24.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/0.9212, allocations: 0.5071 MB / 0.8627 GB, free: 24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008482/0.9297, allocations: 2.862 MB / 0.8655 GB, free: 21.13 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005201/0.9302, allocations: 47.97 kB / 0.8655 GB, free: 21.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03126/0.9615, allocations: 17.11 MB / 0.8822 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.9616, allocations: 4 kB / 0.8823 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01702/0.9786, allocations: 6.526 MB / 0.8886 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/0.9808, allocations: 0.6922 MB / 0.8893 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/0.982, allocations: 47.98 kB / 0.8893 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003623/0.9856, allocations: 411.5 kB / 0.8897 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/0.987, allocations: 366.6 kB / 0.8901 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000399/0.9875, allocations: 67.97 kB / 0.8902 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002888/0.9904, allocations: 1.513 MB / 0.8916 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9904, allocations: 3.172 kB / 0.8916 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004275/0.9947, allocations: 1.047 MB / 0.8927 GB, free: 9.004 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 62} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006158/0.9953, allocations: 171.1 kB / 0.8928 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02288/1.018, allocations: 6.825 MB / 0.8995 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.018, allocations: 0 / 0.8995 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01817/1.036, allocations: 4.234 MB / 0.9036 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006027/1.043, allocations: 1.058 MB / 0.9047 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0155/1.058, allocations: 7.742 MB / 0.9122 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/1.06, allocations: 2.227 MB / 0.9144 GB, free: 2.602 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002625/1.063, allocations: 0.5138 MB / 0.9149 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/1.063, allocations: 175.4 kB / 0.9151 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of SimCode: time 2.195e-06/1.063, allocations: 0 / 0.9151 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of Templates: time 0.1129/1.176, allocations: 70.17 MB / 0.9836 GB, free: 12.61 MB / 0.67 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)