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.0055/0.0055, allocations: 101 kB / 15.73 MB, free: 6.051 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.001308/0.001308, allocations: 208.5 kB / 16.68 MB, free: 5.969 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002172/0.002172, allocations: 279 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9588/0.9588, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 103.8 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1633, allocations: 86.98 MB / 0.7664 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.3427/0.506, allocations: 22.62 MB / 0.7885 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02502/0.5311, allocations: 17.63 MB / 0.8057 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003537/0.5346, allocations: 115.8 kB / 0.8058 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.5457, allocations: 4.162 MB / 0.8099 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0124/0.5581, allocations: 3.577 MB / 0.8134 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004729/0.5628, allocations: 1.316 MB / 0.8147 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009521/0.5724, allocations: 5.798 MB / 0.8203 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004862/0.5772, allocations: 3.595 MB / 0.8238 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004527/0.5818, allocations: 2.486 MB / 0.8263 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004814/0.5866, allocations: 2.439 MB / 0.8287 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0009343/0.5876, allocations: 369.4 kB / 0.829 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.5905, allocations: 1.038 MB / 0.83 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001215/0.5917, allocations: 1.193 MB / 0.8312 GB, free: 9.273 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002534/0.5943, allocations: 2 MB / 0.8331 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005782/0.6001, allocations: 5.177 MB / 0.8382 GB, free: 4.293 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.6001, allocations: 0 / 0.8382 GB, free: 4.293 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6001, allocations: 0 / 0.8382 GB, free: 4.293 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.642e-05/0.6002, allocations: 1.688 kB / 0.8382 GB, free: 4.293 MB / 0.5919 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.01/0.6102, allocations: 4.613 MB / 0.8427 GB, free: 1.113 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.6102, allocations: 9.938 kB / 0.8427 GB, free: 1.113 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01646/0.6267, allocations: 3.265 MB / 0.8459 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00436/0.6311, allocations: 2.229 MB / 0.8481 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.6314, allocations: 463.8 kB / 0.8485 GB, free: 13.63 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004849/0.6319, allocations: 237.8 kB / 0.8487 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.6428, allocations: 4.811 MB / 0.8534 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/0.6429, allocations: 0 / 0.8534 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003359/0.6432, allocations: 108.7 kB / 0.8535 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/0.6434, allocations: 176.7 kB / 0.8537 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.6569, allocations: 5.198 MB / 0.8588 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02185/0.6788, allocations: 14.39 MB / 0.8728 GB, free: 4.531 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.6891, allocations: 3.391 MB / 0.8762 GB, free: 1.133 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00407/0.6932, allocations: 1.463 MB / 0.8776 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.6934, allocations: 29.23 kB / 0.8776 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00515/0.6986, allocations: 1.791 MB / 0.8794 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=163): time 9.057e-06/0.6986, allocations: 0 / 0.8794 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of matching and sorting (n=250): time 0.1311/0.8297, allocations: 28.24 MB / 0.9069 GB, free: 1.316 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002329/0.83, allocations: 0.4967 MB / 0.9074 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/0.8338, allocations: 2.3 MB / 0.9097 GB, free: 14.4 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0003726/0.8342, allocations: 69.7 kB / 0.9097 GB, free: 14.32 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.8355, allocations: 1.438 MB / 0.9111 GB, free: 12.87 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009152/0.8364, allocations: 0.8201 MB / 0.9119 GB, free: 12.04 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.8375, allocations: 412.5 kB / 0.9123 GB, free: 11.63 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.8376, allocations: 305.1 kB / 0.9126 GB, free: 11.33 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005499/0.8431, allocations: 1.925 MB / 0.9145 GB, free: 9.398 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005701/0.8489, allocations: 2.237 MB / 0.9167 GB, free: 7.078 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.8598, allocations: 4.165 MB / 0.9208 GB, free: 2.777 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.8598, allocations: 0 / 0.9208 GB, free: 2.777 MB / 0.67 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01924/0.879, allocations: 6.539 MB / 0.9271 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.795e-05/0.8792, allocations: 148.5 kB / 0.9273 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.8792, allocations: 4 kB / 0.9273 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/0.8892, allocations: 2.93 MB / 0.9302 GB, free: 9.027 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002951/0.8922, allocations: 483.2 kB / 0.9306 GB, free: 8.555 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03985/0.9321, allocations: 18.84 MB / 0.949 GB, free: 5.473 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004593/0.9367, allocations: 319.6 kB / 0.9493 GB, free: 5.16 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000449/0.9372, allocations: 87.97 kB / 0.9494 GB, free: 5.074 MB / 0.7012 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 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.939, allocations: 0.7072 MB / 0.9501 GB, free: 4.359 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008106/0.9398, allocations: 336 kB / 0.9504 GB, free: 4.027 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009355/0.9407, allocations: 380.1 kB / 0.9508 GB, free: 3.648 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.9408, allocations: 30.5 kB / 0.9508 GB, free: 3.621 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.809e-05/0.9408, allocations: 8 kB / 0.9508 GB, free: 3.613 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.9408, allocations: 11.95 kB / 0.9508 GB, free: 3.602 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005583/0.9464, allocations: 3.636 MB / 0.9544 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/0.9465, allocations: 0 / 0.9544 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002545/0.949, allocations: 415.3 kB / 0.9548 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009768/0.9588, allocations: 2.865 MB / 0.9576 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/0.9591, allocations: 51.97 kB / 0.9576 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03931/0.9984, allocations: 18.61 MB / 0.9758 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.9984, allocations: 0 / 0.9758 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01792/1.016, allocations: 6.173 MB / 0.9818 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/1.018, allocations: 0.7011 MB / 0.9825 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009675/1.019, allocations: 48 kB / 0.9826 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003634/1.023, allocations: 323.4 kB / 0.9829 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/1.024, allocations: 354.7 kB / 0.9832 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/1.024, allocations: 67.97 kB / 0.9833 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002662/1.027, allocations: 1.532 MB / 0.9848 GB, free: 440 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.81e-07/1.027, allocations: 0 / 0.9848 GB, free: 440 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003184/1.03, allocations: 1.043 MB / 0.9858 GB, free: 15.38 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004266/1.03, allocations: 171.6 kB / 0.9859 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.02308/1.054, allocations: 6.473 MB / 0.9923 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.054, allocations: 0 / 0.9923 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.01681/1.07, allocations: 4.06 MB / 0.9962 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005258/1.076, allocations: 1.139 MB / 0.9973 GB, free: 3.473 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/1.091, allocations: 6.694 MB / 1.004 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002349/1.093, allocations: 2.231 MB / 1.006 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00217/1.096, allocations: 0.5099 MB / 1.007 GB, free: 9.969 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/1.096, allocations: 187.4 kB / 1.007 GB, free: 9.789 MB / 0.7637 GB Notification: Performance of SimCode: time 5.21e-07/1.096, allocations: 4 kB / 1.007 GB, free: 9.785 MB / 0.7637 GB Notification: Performance of Templates: time 0.1087/1.205, allocations: 75.71 MB / 1.081 GB, free: 14.96 MB / 0.8419 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)