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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001842/0.001842, allocations: 102.2 kB / 16.27 MB, free: 6 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.002027/0.002027, allocations: 191 kB / 17.2 MB, free: 5.609 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.447/1.447, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.914/2.914, allocations: 469.4 MB / 0.7426 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 61.97 kB / 0.9088 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.341, allocations: 159.1 MB / 1.064 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009497/0.3506, allocations: 6.297 MB / 1.07 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.008758/0.3594, allocations: 4.529 MB / 1.075 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009794/0.3604, allocations: 23.88 kB / 1.075 GB, free: 4.094 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003007/0.3635, allocations: 0.924 MB / 1.076 GB, free: 3.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003014/0.3665, allocations: 0.7652 MB / 1.076 GB, free: 2.398 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.3677, allocations: 329.4 kB / 1.077 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002235/0.3699, allocations: 1.125 MB / 1.078 GB, free: 0.9492 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.3714, allocations: 0.689 MB / 1.079 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.5506/0.922, allocations: 466.1 kB / 1.079 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.923, allocations: 0.4997 MB / 1.079 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.9232, allocations: 68.84 kB / 1.08 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006879/0.9239, allocations: 276.3 kB / 1.08 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.9242, allocations: 255.2 kB / 1.08 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004717/0.9247, allocations: 404.7 kB / 1.08 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.926, allocations: 1.059 MB / 1.081 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.9261, allocations: 0.6562 kB / 1.081 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9261, allocations: 0.5625 kB / 1.081 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.714e-05/0.9261, allocations: 0.75 kB / 1.081 GB, free: 11.49 MB / 0.8419 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.001898/0.928, allocations: 1.093 MB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.928, allocations: 9.281 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003283/0.9313, allocations: 0.6317 MB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008566/0.9322, allocations: 0.5397 MB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.9322, allocations: 46.52 kB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.487e-05/0.9323, allocations: 51.86 kB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.9345, allocations: 1.024 MB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.9345, allocations: 0 / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.708e-05/0.9346, allocations: 21.53 kB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.083e-05/0.9347, allocations: 46.8 kB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002598/0.9373, allocations: 1.012 MB / 1.086 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004042/0.9414, allocations: 3.488 MB / 1.089 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.9429, allocations: 497.3 kB / 1.09 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005724/0.9435, allocations: 227.1 kB / 1.09 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.9435, allocations: 11.03 kB / 1.09 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.9435, allocations: 33.44 kB / 1.09 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.9435, allocations: 0 / 1.09 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.00719/0.9507, allocations: 2.028 MB / 1.092 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.9508, allocations: 60.22 kB / 1.092 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000794/0.9516, allocations: 0.5651 MB / 1.093 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.9516, allocations: 36.39 kB / 1.093 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.9518, allocations: 354.3 kB / 1.093 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.952, allocations: 149.1 kB / 1.093 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.9521, allocations: 91.98 kB / 1.093 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.741e-05/0.9523, allocations: 376.8 kB / 1.094 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007251/0.953, allocations: 256.4 kB / 1.094 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007324/0.9537, allocations: 362.5 kB / 1.094 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.9552, allocations: 0.6246 MB / 1.095 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.9552, allocations: 5.797 kB / 1.095 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002461/0.9576, allocations: 0.9265 MB / 1.096 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.9577, allocations: 10.14 kB / 1.096 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.9577, allocations: 2.281 kB / 1.096 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.9588, allocations: 279.6 kB / 1.096 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.9595, allocations: 117.4 kB / 1.096 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006537/0.966, allocations: 9.116 MB / 1.105 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008016/0.9668, allocations: 41.84 kB / 1.105 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.9669, allocations: 20.66 kB / 1.105 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001008/0.9679, allocations: 437.3 kB / 1.105 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007594/0.9687, allocations: 356.1 kB / 1.106 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001471/0.9702, allocations: 0.6147 MB / 1.106 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.665e-06/0.9702, allocations: 0 / 1.106 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002698/0.9729, allocations: 1.122 MB / 1.107 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.9729, allocations: 6.984 kB / 1.107 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.9729, allocations: 3.125 kB / 1.107 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008504/0.9738, allocations: 230 kB / 1.108 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006706/0.9745, allocations: 129.8 kB / 1.108 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006794/0.9813, allocations: 8.787 MB / 1.116 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000795/0.9821, allocations: 42.84 kB / 1.116 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.9822, allocations: 16 kB / 1.116 GB, free: 2.734 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 (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.0002672/0.9824, allocations: 212.1 kB / 1.117 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.9826, allocations: 73.38 kB / 1.117 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.9828, allocations: 79.66 kB / 1.117 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.9828, allocations: 5 kB / 1.117 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.9828, allocations: 1.781 kB / 1.117 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.9828, allocations: 6.375 kB / 1.117 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.9839, allocations: 0.6415 MB / 1.117 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.9839, allocations: 3.938 kB / 1.117 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005218/0.9845, allocations: 88.81 kB / 1.118 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.9855, allocations: 264 kB / 1.118 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.971e-05/0.9855, allocations: 11.75 kB / 1.118 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007286/0.9928, allocations: 9.069 MB / 1.127 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9929, allocations: 1.125 kB / 1.127 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.9954, allocations: 0.9171 MB / 1.128 GB, free: 8.844 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.9957, allocations: 180.2 kB / 1.128 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.9958, allocations: 7.297 kB / 1.128 GB, free: 8.691 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005244/0.9964, allocations: 44.72 kB / 1.128 GB, free: 8.68 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.9965, allocations: 42 kB / 1.128 GB, free: 8.668 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.9966, allocations: 10.59 kB / 1.128 GB, free: 8.668 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005608/0.9971, allocations: 401.9 kB / 1.128 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9971, allocations: 1.062 kB / 1.128 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001189/0.9983, allocations: 301.3 kB / 1.128 GB, free: 8.457 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 (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.0001665/0.9985, allocations: 115.2 kB / 1.129 GB, free: 8.359 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004172/1.003, allocations: 2.4 MB / 1.131 GB, free: 6.715 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/1.003, allocations: 0 / 1.131 GB, free: 6.715 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001478/1.004, allocations: 1.008 MB / 1.132 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/1.005, allocations: 243.9 kB / 1.132 GB, free: 5.852 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/1.008, allocations: 1.372 MB / 1.133 GB, free: 5.145 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006576/1.009, allocations: 0.9854 MB / 1.134 GB, free: 4.406 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/1.009, allocations: 47.73 kB / 1.134 GB, free: 4.398 MB / 0.8731 GB Notification: Performance of SimCode: time 5.72e-07/1.009, allocations: 0 / 1.134 GB, free: 4.398 MB / 0.8731 GB Notification: Performance of Templates: time 0.0347/1.044, allocations: 26.95 MB / 1.161 GB, free: 9.961 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)