Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.2 MB / 0.6649 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 63.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5762/0.5777, allocations: 140.4 MB / 0.9496 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02126/0.599, allocations: 22.41 MB / 0.9715 GB, free: 7.832 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02607/0.6251, allocations: 17.59 MB / 0.9886 GB, free: 9.883 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003535/0.6286, allocations: 102.5 kB / 0.9887 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01018/0.6389, allocations: 3.915 MB / 0.9926 GB, free: 5.961 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01087/0.6497, allocations: 3.198 MB / 0.9957 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003713/0.6535, allocations: 1.193 MB / 0.9969 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009133/0.6626, allocations: 6.861 MB / 1.004 GB, free: 10.69 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004365/0.667, allocations: 2.452 MB / 1.006 GB, free: 8.164 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004335/0.6714, allocations: 2.078 MB / 1.008 GB, free: 6.078 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004498/0.6759, allocations: 2.412 MB / 1.01 GB, free: 3.656 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001112/0.677, allocations: 219.9 kB / 1.011 GB, free: 3.441 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003149/0.6802, allocations: 1.1 MB / 1.012 GB, free: 2.34 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.6819, allocations: 1.024 MB / 1.013 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003647/0.6856, allocations: 1.834 MB / 1.014 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004809/0.6904, allocations: 3.936 MB / 1.018 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.6904, allocations: 4 kB / 1.018 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.382e-06/0.6904, allocations: 0 / 1.018 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001753/0.6906, allocations: 0 / 1.018 GB, free: 11.52 MB / 0.7794 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.00982/0.7005, allocations: 4.382 MB / 1.023 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.7005, allocations: 12.03 kB / 1.023 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0157/0.7162, allocations: 3.261 MB / 1.026 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004243/0.7205, allocations: 2.064 MB / 1.028 GB, free: 1.609 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.7207, allocations: 181.1 kB / 1.028 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005995/0.7213, allocations: 240 kB / 1.028 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.7315, allocations: 4.685 MB / 1.033 GB, free: 12.36 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.086e-05/0.7315, allocations: 0 / 1.033 GB, free: 12.36 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002994/0.7318, allocations: 104 kB / 1.033 GB, free: 12.26 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.732, allocations: 176.8 kB / 1.033 GB, free: 12.09 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.7441, allocations: 5.116 MB / 1.038 GB, free: 6.953 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02075/0.7649, allocations: 14 MB / 1.052 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/0.7756, allocations: 3.567 MB / 1.055 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003316/0.779, allocations: 1.389 MB / 1.056 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.7791, allocations: 33.22 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00389/0.783, allocations: 1.699 MB / 1.058 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 3.657e-06/0.783, allocations: 0 / 1.058 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1166/0.8997, allocations: 27.4 MB / 1.085 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000307/0.9, allocations: 0.4967 MB / 1.085 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004359/0.9044, allocations: 2.292 MB / 1.088 GB, free: 2.484 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0005055/0.905, allocations: 85.62 kB / 1.088 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001657/0.9066, allocations: 1.434 MB / 1.089 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001211/0.9078, allocations: 0.8163 MB / 1.09 GB, free: 120 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.9091, allocations: 416.5 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.9092, allocations: 309.1 kB / 1.091 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005614/0.9149, allocations: 1.755 MB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/0.9196, allocations: 2.04 MB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01395/0.9335, allocations: 3.841 MB / 1.098 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.494e-05/0.9336, allocations: 3.938 kB / 1.098 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01826/0.9519, allocations: 5.813 MB / 1.104 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.952, allocations: 148.5 kB / 1.104 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.9521, allocations: 4 kB / 1.104 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006773/0.9589, allocations: 1.836 MB / 1.106 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/0.9618, allocations: 499.2 kB / 1.106 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02229/0.9841, allocations: 14.08 MB / 1.12 GB, free: 0.793 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003854/0.9881, allocations: 303.6 kB / 1.12 GB, free: 0.4961 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002669/0.9883, allocations: 91.97 kB / 1.12 GB, free: 416 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005269/0.9936, allocations: 2.312 MB / 1.123 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004625/0.9983, allocations: 2.032 MB / 1.125 GB, free: 11.97 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00887/1.007, allocations: 3.798 MB / 1.128 GB, free: 8.035 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.028e-05/1.007, allocations: 0 / 1.128 GB, free: 8.035 MB / 0.8887 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01456/1.022, allocations: 5.642 MB / 1.134 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.022, allocations: 148.5 kB / 1.134 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.022, allocations: 4 kB / 1.134 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005531/1.027, allocations: 1.677 MB / 1.136 GB, free: 444 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/1.03, allocations: 0.5187 MB / 1.136 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/1.051, allocations: 13.34 MB / 1.149 GB, free: 2.293 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/1.054, allocations: 303.6 kB / 1.149 GB, free: 1.996 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000392/1.055, allocations: 95.97 kB / 1.149 GB, free: 1.902 MB / 0.9044 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 (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.0006622/1.055, allocations: 319.4 kB / 1.15 GB, free: 1.586 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007092/1.056, allocations: 332.2 kB / 1.15 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007302/1.057, allocations: 392.1 kB / 1.15 GB, free: 0.8672 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/1.057, allocations: 27.94 kB / 1.151 GB, free: 0.8398 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.852e-05/1.057, allocations: 12 kB / 1.151 GB, free: 0.8281 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/1.057, allocations: 15.95 kB / 1.151 GB, free: 0.8125 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004096/1.061, allocations: 3.176 MB / 1.154 GB, free: 13.59 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.061, allocations: 4 kB / 1.154 GB, free: 13.58 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002548/1.064, allocations: 427.4 kB / 1.154 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006042/1.07, allocations: 1.699 MB / 1.156 GB, free: 11.46 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002691/1.07, allocations: 51.97 kB / 1.156 GB, free: 11.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/1.091, allocations: 13.84 MB / 1.169 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.091, allocations: 0 / 1.169 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/1.105, allocations: 5.424 MB / 1.175 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/1.107, allocations: 0.6726 MB / 1.175 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004756/1.107, allocations: 44 kB / 1.175 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/1.11, allocations: 303.6 kB / 1.176 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008657/1.111, allocations: 290.7 kB / 1.176 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.111, allocations: 67.97 kB / 1.176 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002053/1.113, allocations: 1.536 MB / 1.177 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/1.113, allocations: 0 / 1.177 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00369/1.117, allocations: 1.637 MB / 1.179 GB, free: 3.27 MB / 0.9356 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 (128): * Single equations (assignments): 116 * 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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003218/1.117, allocations: 171.1 kB / 1.179 GB, free: 3.094 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02043/1.137, allocations: 9.265 MB / 1.188 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.137, allocations: 7.938 kB / 1.188 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.007568/1.145, allocations: 3.292 MB / 1.191 GB, free: 6.309 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/1.149, allocations: 1.052 MB / 1.192 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/1.163, allocations: 8.043 MB / 1.2 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/1.165, allocations: 2.301 MB / 1.203 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/1.166, allocations: 199.4 kB / 1.203 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of SimCode: time 1.142e-06/1.166, allocations: 0 / 1.203 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of Templates: time 0.5178/1.684, allocations: 79.57 MB / 1.28 GB, free: 275.7 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)