Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(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_latest_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_latest_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.0009685/0.0009686, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008783/0.0008783, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.907/2.907, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.00037, allocations: 13.03 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3917/0.3921, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00823/0.4004, allocations: 5.594 MB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007003/0.4074, allocations: 4.217 MB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000748/0.4082, allocations: 19.88 kB / 1.068 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007076/0.4089, allocations: 146.9 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002661/0.4116, allocations: 0.6159 MB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009887/0.4126, allocations: 243.6 kB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002177/0.4148, allocations: 1.197 MB / 1.07 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008512/0.4157, allocations: 484.4 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006297/0.4163, allocations: 382.5 kB / 1.071 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007495/0.4171, allocations: 470.2 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.784e-05/0.4172, allocations: 40 kB / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004101/0.4176, allocations: 139.8 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.4178, allocations: 207.3 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.418, allocations: 161.3 kB / 1.072 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008045/0.4188, allocations: 0.8144 MB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4188, allocations: 3.938 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4188, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.152e-05/0.4188, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 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.001821/0.4207, allocations: 0.9698 MB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4207, allocations: 12.03 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003142/0.4239, allocations: 0.6543 MB / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.4251, allocations: 0.5181 MB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/0.4252, allocations: 45.3 kB / 1.075 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4253, allocations: 52 kB / 1.075 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.4274, allocations: 1.018 MB / 1.076 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.4274, allocations: 0 / 1.076 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.4275, allocations: 24 kB / 1.076 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-05/0.4276, allocations: 49.28 kB / 1.076 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002156/0.4298, allocations: 1.012 MB / 1.077 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004447/0.4342, allocations: 3.521 MB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.4357, allocations: 0.5105 MB / 1.081 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.4363, allocations: 248.7 kB / 1.081 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.4363, allocations: 12.45 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.4364, allocations: 38.56 kB / 1.081 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.494e-06/0.4364, allocations: 0 / 1.081 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.006497/0.4429, allocations: 2.223 MB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.4429, allocations: 59.34 kB / 1.083 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000691/0.4436, allocations: 0.5665 MB / 1.084 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.4437, allocations: 33.7 kB / 1.084 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.444, allocations: 356.2 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.4441, allocations: 145.9 kB / 1.084 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.4441, allocations: 8 kB / 1.084 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001863/0.4443, allocations: 374.8 kB / 1.084 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006396/0.445, allocations: 272.9 kB / 1.085 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006922/0.4457, allocations: 381.8 kB / 1.085 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.4463, allocations: 313.6 kB / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.4464, allocations: 3.953 kB / 1.085 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002245/0.4486, allocations: 0.9744 MB / 1.086 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.4487, allocations: 190.2 kB / 1.087 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.4488, allocations: 4 kB / 1.087 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.4498, allocations: 276.8 kB / 1.087 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005747/0.4504, allocations: 123.8 kB / 1.087 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007813/0.4582, allocations: 8.481 MB / 1.095 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/0.4589, allocations: 60 kB / 1.095 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.643e-05/0.4589, allocations: 20 kB / 1.095 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.459, allocations: 4 kB / 1.095 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002362/0.4613, allocations: 1.077 MB / 1.096 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.4613, allocations: 4 kB / 1.096 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007052/0.4621, allocations: 221.2 kB / 1.097 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005554/0.4626, allocations: 131.8 kB / 1.097 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006858/0.4695, allocations: 8.156 MB / 1.105 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000754/0.4703, allocations: 59.95 kB / 1.105 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.4703, allocations: 24 kB / 1.105 GB, free: 3.012 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006193/0.471, allocations: 312.9 kB / 1.105 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.4711, allocations: 75.09 kB / 1.105 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.4713, allocations: 78.38 kB / 1.105 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.4713, allocations: 4 kB / 1.105 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/0.4713, allocations: 4 kB / 1.105 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4713, allocations: 3.984 kB / 1.105 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008983/0.4722, allocations: 0.6455 MB / 1.106 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4722, allocations: 0 / 1.106 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.4727, allocations: 103.9 kB / 1.106 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008967/0.4736, allocations: 260.8 kB / 1.106 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.4737, allocations: 7.984 kB / 1.106 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007279/0.4809, allocations: 8.424 MB / 1.114 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.481, allocations: 0 / 1.114 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.4832, allocations: 0.9639 MB / 1.115 GB, free: 7.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.4836, allocations: 184.2 kB / 1.116 GB, free: 7.031 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.4837, allocations: 8 kB / 1.116 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.4841, allocations: 51.94 kB / 1.116 GB, free: 6.973 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.4843, allocations: 39.89 kB / 1.116 GB, free: 6.934 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.4843, allocations: 19.98 kB / 1.116 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005565/0.4849, allocations: 403.1 kB / 1.116 GB, free: 6.527 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.2e-07/0.4849, allocations: 0 / 1.116 GB, free: 6.527 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001319/0.4862, allocations: 300 kB / 1.116 GB, free: 6.234 MB / 0.8731 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001733/0.4864, allocations: 107.2 kB / 1.116 GB, free: 6.117 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003711/0.4901, allocations: 2.407 MB / 1.119 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.4901, allocations: 0 / 1.119 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.4915, allocations: 1.027 MB / 1.12 GB, free: 2.449 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009642/0.4925, allocations: 210.9 kB / 1.12 GB, free: 2.246 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.4951, allocations: 1.515 MB / 1.121 GB, free: 0.7031 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007563/0.4959, allocations: 0.9898 MB / 1.122 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006435/0.4966, allocations: 153.4 kB / 1.123 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.4967, allocations: 47.42 kB / 1.123 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of SimCode: time 1.533e-06/0.4967, allocations: 0 / 1.123 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of Templates: time 0.02335/0.5201, allocations: 12.5 MB / 1.135 GB, free: 3.129 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)