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.001023/0.001024, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001028/0.001028, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002051/0.002051, allocations: 283 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9296/0.9296, allocations: 169.2 MB / 0.4989 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 94.62 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1538, allocations: 86.98 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.2814/0.4353, allocations: 22.61 MB / 0.7037 GB, free: 5.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02481/0.4601, allocations: 17.63 MB / 0.7209 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003356/0.4635, allocations: 110.5 kB / 0.721 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.01097/0.4745, allocations: 4.172 MB / 0.7251 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.011/0.4855, allocations: 3.516 MB / 0.7285 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003757/0.4893, allocations: 1.311 MB / 0.7298 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008634/0.4979, allocations: 5.794 MB / 0.7355 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006497/0.5045, allocations: 3.594 MB / 0.739 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.5092, allocations: 2.411 MB / 0.7413 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004979/0.5142, allocations: 2.436 MB / 0.7437 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001319/0.5156, allocations: 373.7 kB / 0.7441 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003329/0.5189, allocations: 1.041 MB / 0.7451 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001834/0.5208, allocations: 1.187 MB / 0.7462 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002941/0.5237, allocations: 1.996 MB / 0.7482 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005468/0.5292, allocations: 5.172 MB / 0.7532 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.5292, allocations: 4 kB / 0.7532 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5292, allocations: 4 kB / 0.7532 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.794e-05/0.5293, allocations: 0 / 0.7532 GB, free: 5.516 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01006/0.5394, allocations: 4.612 MB / 0.7577 GB, free: 0.7891 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.5395, allocations: 8.031 kB / 0.7577 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01516/0.5546, allocations: 3.269 MB / 0.7609 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004826/0.5595, allocations: 2.224 MB / 0.7631 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003377/0.5598, allocations: 466.5 kB / 0.7636 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004714/0.5603, allocations: 239.9 kB / 0.7638 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009519/0.5698, allocations: 4.811 MB / 0.7685 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.331e-05/0.5699, allocations: 3.984 kB / 0.7685 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003044/0.5702, allocations: 109.5 kB / 0.7686 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001792/0.5704, allocations: 172.8 kB / 0.7688 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.5823, allocations: 5.191 MB / 0.7738 GB, free: 12 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/0.6023, allocations: 14.39 MB / 0.7879 GB, free: 464 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008986/0.6113, allocations: 3.392 MB / 0.7912 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/0.6146, allocations: 1.467 MB / 0.7926 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.6148, allocations: 33.2 kB / 0.7927 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003791/0.6186, allocations: 1.795 MB / 0.7944 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.246e-06/0.6186, allocations: 0 / 0.7944 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1135/0.7321, allocations: 28.21 MB / 0.822 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002139/0.7324, allocations: 0.4928 MB / 0.8224 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003184/0.7356, allocations: 2.304 MB / 0.8247 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.7358, allocations: 69.7 kB / 0.8248 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.737, allocations: 1.438 MB / 0.8262 GB, free: 8.801 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007393/0.7377, allocations: 0.824 MB / 0.827 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008848/0.7386, allocations: 412.5 kB / 0.8274 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.7387, allocations: 305.1 kB / 0.8277 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004843/0.7436, allocations: 1.933 MB / 0.8295 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005182/0.7488, allocations: 2.227 MB / 0.8317 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009781/0.7586, allocations: 4.165 MB / 0.8358 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.7586, allocations: 7.938 kB / 0.8358 GB, free: 14.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01739/0.776, allocations: 6.531 MB / 0.8422 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.607e-05/0.7761, allocations: 144.8 kB / 0.8423 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.7761, allocations: 8 kB / 0.8423 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009737/0.7859, allocations: 2.93 MB / 0.8452 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002759/0.7887, allocations: 0.4906 MB / 0.8457 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03864/0.8273, allocations: 18.83 MB / 0.864 GB, free: 1.391 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003935/0.8313, allocations: 319.6 kB / 0.8643 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004304/0.8317, allocations: 87.97 kB / 0.8644 GB, free: 0.9922 MB / 0.6231 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.001684/0.8334, allocations: 0.7153 MB / 0.8651 GB, free: 276 kB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007734/0.8342, allocations: 332.1 kB / 0.8654 GB, free: 15.94 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.835, allocations: 384.1 kB / 0.8658 GB, free: 15.56 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.835, allocations: 24 kB / 0.8658 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.498e-05/0.8351, allocations: 8 kB / 0.8658 GB, free: 15.53 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/0.8351, allocations: 11.95 kB / 0.8659 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/0.8401, allocations: 3.616 MB / 0.8694 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.8401, allocations: 4 kB / 0.8694 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002452/0.8426, allocations: 407.4 kB / 0.8698 GB, free: 11.44 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009574/0.8522, allocations: 2.88 MB / 0.8726 GB, free: 8.555 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003528/0.8526, allocations: 55.91 kB / 0.8726 GB, free: 8.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03832/0.8909, allocations: 18.61 MB / 0.8908 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.8909, allocations: 192 / 0.8908 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01734/0.9083, allocations: 6.169 MB / 0.8968 GB, free: 15.38 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00211/0.9104, allocations: 0.7 MB / 0.8975 GB, free: 14.66 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008936/0.9113, allocations: 51.98 kB / 0.8976 GB, free: 14.61 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003498/0.9149, allocations: 311.5 kB / 0.8979 GB, free: 14.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001202/0.9161, allocations: 354.7 kB / 0.8982 GB, free: 13.96 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/0.9164, allocations: 67.97 kB / 0.8983 GB, free: 13.89 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0024/0.9188, allocations: 1.532 MB / 0.8998 GB, free: 12.36 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9188, allocations: 4 kB / 0.8998 GB, free: 12.36 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003187/0.922, allocations: 1.047 MB / 0.9008 GB, free: 11.31 MB / 0.67 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.000394/0.9224, allocations: 163.8 kB / 0.901 GB, free: 11.14 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.02232/0.9447, allocations: 6.481 MB / 0.9073 GB, free: 4.566 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.9448, allocations: 4 kB / 0.9073 GB, free: 4.562 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.01611/0.9609, allocations: 4.06 MB / 0.9113 GB, free: 488 kB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004756/0.9657, allocations: 1.157 MB / 0.9124 GB, free: 15.38 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.9795, allocations: 6.684 MB / 0.9189 GB, free: 8.668 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001834/0.9813, allocations: 2.227 MB / 0.9211 GB, free: 6.41 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001972/0.9833, allocations: 0.5177 MB / 0.9216 GB, free: 5.887 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006457/0.984, allocations: 179.4 kB / 0.9218 GB, free: 5.711 MB / 0.6856 GB Notification: Performance of SimCode: time 5.91e-07/0.984, allocations: 0 / 0.9218 GB, free: 5.711 MB / 0.6856 GB Notification: Performance of Templates: time 0.3413/1.325, allocations: 74.9 MB / 0.9949 GB, free: 223.3 MB / 0.7169 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)