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.004587/0.004587, allocations: 99.53 kB / 15.73 MB, free: 6.48 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.001087/0.001087, allocations: 189 kB / 16.67 MB, free: 6.367 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 283 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9471/0.9471, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 95.78 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1637, allocations: 86.97 MB / 0.7664 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.3352/0.499, allocations: 22.62 MB / 0.7885 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02548/0.5245, allocations: 17.63 MB / 0.8057 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003164/0.5277, allocations: 113.9 kB / 0.8058 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01048/0.5382, allocations: 4.173 MB / 0.8099 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.55, allocations: 3.508 MB / 0.8133 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004696/0.5547, allocations: 1.317 MB / 0.8146 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01196/0.5666, allocations: 5.781 MB / 0.8203 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006678/0.5733, allocations: 3.596 MB / 0.8238 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00487/0.5782, allocations: 2.42 MB / 0.8261 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005366/0.5836, allocations: 2.439 MB / 0.8285 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001633/0.5853, allocations: 370.1 kB / 0.8289 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003621/0.5889, allocations: 1.034 MB / 0.8299 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.5908, allocations: 1.194 MB / 0.831 GB, free: 9.367 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.004213/0.5951, allocations: 2 MB / 0.833 GB, free: 8 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007031/0.6021, allocations: 5.205 MB / 0.8381 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6021, allocations: 0 / 0.8381 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.392e-06/0.6021, allocations: 0 / 0.8381 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.057e-05/0.6022, allocations: 0 / 0.8381 GB, free: 4.355 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.009612/0.6118, allocations: 4.721 MB / 0.8427 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.6119, allocations: 12.94 kB / 0.8427 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.6278, allocations: 3.283 MB / 0.8459 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/0.6329, allocations: 2.252 MB / 0.8481 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.6333, allocations: 463.2 kB / 0.8486 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000485/0.6338, allocations: 242.9 kB / 0.8488 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.6441, allocations: 4.819 MB / 0.8535 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.501e-05/0.6442, allocations: 3.938 kB / 0.8535 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003071/0.6445, allocations: 104 kB / 0.8536 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001912/0.6447, allocations: 168.8 kB / 0.8538 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.6578, allocations: 5.195 MB / 0.8588 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02094/0.6788, allocations: 14.42 MB / 0.8729 GB, free: 4.539 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009613/0.6884, allocations: 3.393 MB / 0.8762 GB, free: 1.137 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00373/0.6922, allocations: 1.467 MB / 0.8777 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.6923, allocations: 25.22 kB / 0.8777 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004082/0.6964, allocations: 1.794 MB / 0.8794 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=163): time 3.446e-06/0.6964, allocations: 0 / 0.8794 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of matching and sorting (n=250): time 0.1255/0.8219, allocations: 28.3 MB / 0.9071 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002404/0.8222, allocations: 0.4928 MB / 0.9075 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003077/0.8253, allocations: 2.293 MB / 0.9098 GB, free: 14.36 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.8256, allocations: 77.7 kB / 0.9099 GB, free: 14.28 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.8268, allocations: 1.456 MB / 0.9113 GB, free: 12.81 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007461/0.8275, allocations: 0.8637 MB / 0.9121 GB, free: 11.94 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008467/0.8284, allocations: 412.5 kB / 0.9125 GB, free: 11.53 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.8285, allocations: 305.1 kB / 0.9128 GB, free: 11.23 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005114/0.8336, allocations: 1.925 MB / 0.9147 GB, free: 9.301 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005361/0.839, allocations: 2.227 MB / 0.9169 GB, free: 6.988 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.8492, allocations: 4.169 MB / 0.9209 GB, free: 2.684 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.8493, allocations: 4 kB / 0.9209 GB, free: 2.68 MB / 0.67 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01799/0.8672, allocations: 6.553 MB / 0.9273 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.8674, allocations: 148.5 kB / 0.9275 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.8674, allocations: 8.859 kB / 0.9275 GB, free: 11.85 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009726/0.8771, allocations: 2.934 MB / 0.9304 GB, free: 8.914 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/0.8801, allocations: 483.2 kB / 0.9308 GB, free: 8.441 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0403/0.9204, allocations: 18.86 MB / 0.9492 GB, free: 5.34 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/0.9248, allocations: 319.6 kB / 0.9495 GB, free: 5.027 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/0.9251, allocations: 91.97 kB / 0.9496 GB, free: 4.938 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.001476/0.9266, allocations: 0.7033 MB / 0.9503 GB, free: 4.227 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005529/0.9271, allocations: 349.9 kB / 0.9507 GB, free: 3.883 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007445/0.9279, allocations: 380.1 kB / 0.951 GB, free: 3.504 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.9279, allocations: 24 kB / 0.951 GB, free: 3.48 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-05/0.9279, allocations: 12 kB / 0.951 GB, free: 3.469 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.928, allocations: 11.95 kB / 0.9511 GB, free: 3.457 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004528/0.9325, allocations: 3.639 MB / 0.9546 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-06/0.9325, allocations: 0 / 0.9546 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002446/0.935, allocations: 419.3 kB / 0.955 GB, free: 15.35 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009664/0.9446, allocations: 2.868 MB / 0.9578 GB, free: 12.47 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003669/0.945, allocations: 47.97 kB / 0.9579 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0393/0.9843, allocations: 18.63 MB / 0.976 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.9844, allocations: 7.984 kB / 0.9761 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.002, allocations: 6.19 MB / 0.9821 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001859/1.004, allocations: 0.7174 MB / 0.9828 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006184/1.005, allocations: 47.94 kB / 0.9828 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003212/1.008, allocations: 316.1 kB / 0.9831 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/1.009, allocations: 354.7 kB / 0.9835 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002308/1.01, allocations: 71.91 kB / 0.9836 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002143/1.012, allocations: 1.536 MB / 0.9851 GB, free: 232 kB / 0.7325 GB Notification: Performance of sort global known variables: time 5.01e-07/1.012, allocations: 0 / 0.9851 GB, free: 232 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003101/1.015, allocations: 1.039 MB / 0.9861 GB, free: 15.18 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.000386/1.015, allocations: 175.5 kB / 0.9862 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.02343/1.039, allocations: 6.489 MB / 0.9926 GB, free: 8.426 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/1.039, allocations: 0 / 0.9926 GB, free: 8.426 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.01756/1.056, allocations: 4.061 MB / 0.9965 GB, free: 4.336 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005213/1.062, allocations: 1.137 MB / 0.9977 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/1.076, allocations: 6.805 MB / 1.004 GB, free: 12.41 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/1.078, allocations: 2.231 MB / 1.006 GB, free: 10.15 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001998/1.08, allocations: 0.506 MB / 1.007 GB, free: 9.637 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006704/1.08, allocations: 191.4 kB / 1.007 GB, free: 9.453 MB / 0.7637 GB Notification: Performance of SimCode: time 1.673e-06/1.08, allocations: 0 / 1.007 GB, free: 9.453 MB / 0.7637 GB Notification: Performance of Templates: time 0.1103/1.191, allocations: 75.71 MB / 1.081 GB, free: 14.62 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)