Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 113.6 kB / 16.41 MB, free: 6.445 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.001781/0.001781, allocations: 183 kB / 17.34 MB, free: 5.738 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.382/2.382, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.89 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.894/0.8952, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.007453/0.9027, allocations: 6.289 MB / 1.095 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00727/0.91, allocations: 4.528 MB / 1.099 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007449/0.9108, allocations: 23.5 kB / 1.099 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002779/0.9136, allocations: 0.9161 MB / 1.1 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002747/0.9163, allocations: 0.7946 MB / 1.101 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009552/0.9173, allocations: 314.5 kB / 1.101 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001746/0.9191, allocations: 1.137 MB / 1.102 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.9201, allocations: 0.6933 MB / 1.103 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007225/0.9209, allocations: 492.6 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008236/0.9217, allocations: 0.4886 MB / 1.104 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.9218, allocations: 69.38 kB / 1.104 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007384/0.9226, allocations: 278.9 kB / 1.104 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.9229, allocations: 249.1 kB / 1.104 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000441/0.9233, allocations: 412.1 kB / 1.105 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.9247, allocations: 1.075 MB / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.9247, allocations: 1.031 kB / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9248, allocations: 0 / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.9248, allocations: 0 / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001963/0.9267, allocations: 1.093 MB / 1.107 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.9268, allocations: 9.531 kB / 1.107 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003275/0.9301, allocations: 0.6318 MB / 1.108 GB, free: 9.953 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009373/0.931, allocations: 0.5706 MB / 1.108 GB, free: 9.562 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.9311, allocations: 39.03 kB / 1.108 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.9312, allocations: 54.09 kB / 1.108 GB, free: 9.523 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002144/0.9333, allocations: 1.028 MB / 1.109 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.9334, allocations: 0 / 1.109 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-05/0.9334, allocations: 23.75 kB / 1.109 GB, free: 9.07 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.009e-05/0.9335, allocations: 45.8 kB / 1.109 GB, free: 9.066 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.936, allocations: 1.005 MB / 1.11 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.9407, allocations: 3.482 MB / 1.114 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.9424, allocations: 494.8 kB / 1.114 GB, free: 5.852 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000577/0.943, allocations: 225.8 kB / 1.114 GB, free: 5.781 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.841e-05/0.943, allocations: 7.125 kB / 1.114 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.9431, allocations: 41.11 kB / 1.114 GB, free: 5.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 2.344e-06/0.9431, allocations: 0 / 1.114 GB, free: 5.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.007058/0.9501, allocations: 2.016 MB / 1.116 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.9502, allocations: 59.41 kB / 1.116 GB, free: 4.949 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007157/0.9509, allocations: 0.5732 MB / 1.117 GB, free: 4.68 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.951, allocations: 32.42 kB / 1.117 GB, free: 4.645 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.9512, allocations: 354.2 kB / 1.117 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.9513, allocations: 153.2 kB / 1.118 GB, free: 4.238 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.9515, allocations: 91.38 kB / 1.118 GB, free: 4.188 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.9517, allocations: 377.8 kB / 1.118 GB, free: 3.844 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006932/0.9524, allocations: 259.9 kB / 1.118 GB, free: 3.762 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007605/0.9531, allocations: 362.3 kB / 1.119 GB, free: 3.559 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.9546, allocations: 0.6285 MB / 1.119 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.9546, allocations: 0.5625 kB / 1.119 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002561/0.9572, allocations: 0.9311 MB / 1.12 GB, free: 2.883 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.9572, allocations: 7.281 kB / 1.12 GB, free: 2.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.9573, allocations: 2.875 kB / 1.12 GB, free: 2.883 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.9584, allocations: 275.6 kB / 1.12 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.9591, allocations: 118 kB / 1.12 GB, free: 2.777 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007829/0.9669, allocations: 9.105 MB / 1.129 GB, free: 10 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000795/0.9677, allocations: 43.66 kB / 1.129 GB, free: 9.996 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.9678, allocations: 24.38 kB / 1.129 GB, free: 9.988 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009984/0.9688, allocations: 440.6 kB / 1.13 GB, free: 9.785 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007402/0.9695, allocations: 358 kB / 1.13 GB, free: 9.594 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001357/0.9709, allocations: 0.6081 MB / 1.131 GB, free: 9.293 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.747e-06/0.9709, allocations: 2.156 kB / 1.131 GB, free: 9.293 MB / 0.8887 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002634/0.9736, allocations: 1.12 MB / 1.132 GB, free: 8.66 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.9736, allocations: 10.53 kB / 1.132 GB, free: 8.656 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.9736, allocations: 2.469 kB / 1.132 GB, free: 8.656 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008522/0.9745, allocations: 226.6 kB / 1.132 GB, free: 8.566 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006381/0.9751, allocations: 118.8 kB / 1.132 GB, free: 8.559 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007098/0.9822, allocations: 8.784 MB / 1.141 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008025/0.9831, allocations: 42.92 kB / 1.141 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.9831, allocations: 27.3 kB / 1.141 GB, free: 15.88 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.9834, allocations: 212.9 kB / 1.141 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.9835, allocations: 65.06 kB / 1.141 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.9837, allocations: 80.91 kB / 1.141 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.9837, allocations: 4.562 kB / 1.141 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.9838, allocations: 5.188 kB / 1.141 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.9838, allocations: 2.156 kB / 1.141 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.9848, allocations: 0.658 MB / 1.142 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.9848, allocations: 0 / 1.142 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005032/0.9853, allocations: 86.03 kB / 1.142 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.9864, allocations: 256.3 kB / 1.142 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.9864, allocations: 11.52 kB / 1.142 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007319/0.9937, allocations: 9.062 MB / 1.151 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.9938, allocations: 2.609 kB / 1.151 GB, free: 6.34 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.9964, allocations: 0.9174 MB / 1.152 GB, free: 5.914 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.9968, allocations: 181.1 kB / 1.152 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.463e-05/0.9969, allocations: 10.19 kB / 1.152 GB, free: 5.758 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/0.9974, allocations: 45.02 kB / 1.152 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.9976, allocations: 37.2 kB / 1.152 GB, free: 5.738 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.9977, allocations: 13.31 kB / 1.152 GB, free: 5.734 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0006076/0.9983, allocations: 407.9 kB / 1.153 GB, free: 5.547 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9983, allocations: 1.531 kB / 1.153 GB, free: 5.547 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001256/0.9996, allocations: 301.2 kB / 1.153 GB, free: 5.52 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001677/0.9997, allocations: 110.3 kB / 1.153 GB, free: 5.422 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004199/1.004, allocations: 2.347 MB / 1.155 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.004, allocations: 5.156 kB / 1.155 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001572/1.006, allocations: 1.013 MB / 1.156 GB, free: 2.961 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/1.007, allocations: 227.8 kB / 1.157 GB, free: 2.887 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/1.009, allocations: 1.346 MB / 1.158 GB, free: 2.191 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006884/1.01, allocations: 0.9855 MB / 1.159 GB, free: 1.457 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/1.01, allocations: 47 kB / 1.159 GB, free: 1.449 MB / 0.9044 GB Notification: Performance of SimCode: time 7.32e-07/1.01, allocations: 0.75 kB / 1.159 GB, free: 1.449 MB / 0.9044 GB Notification: Performance of Templates: time 0.0323/1.043, allocations: 27.02 MB / 1.185 GB, free: 4.715 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)