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.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.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.001195/0.001196, 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.001409/0.001409, 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.536/1.536, allocations: 223.2 MB / 240 MB, free: 5.336 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.683/2.683, allocations: 390.9 MB / 0.666 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003528, allocations: 8 kB / 0.8154 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8231/0.8235, allocations: 142.4 MB / 0.9544 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.007404/0.831, allocations: 5.58 MB / 0.9599 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.006616/0.8377, allocations: 4.223 MB / 0.964 GB, free: 128 kB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009252/0.8387, allocations: 22.31 kB / 0.964 GB, free: 120 kB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006245/0.8393, allocations: 140.7 kB / 0.9642 GB, free: 0 / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002404/0.8417, allocations: 0.6258 MB / 0.9648 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.8428, allocations: 244.5 kB / 0.965 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001724/0.8445, allocations: 1.204 MB / 0.9662 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007855/0.8453, allocations: 487.2 kB / 0.9666 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000743/0.8461, allocations: 378.7 kB / 0.967 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009181/0.847, allocations: 464.1 kB / 0.9675 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.8471, allocations: 37.25 kB / 0.9675 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005565/0.8477, allocations: 150.7 kB / 0.9676 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002619/0.848, allocations: 203.5 kB / 0.9678 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.8482, allocations: 167.2 kB / 0.968 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009748/0.8492, allocations: 0.8081 MB / 0.9688 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.8492, allocations: 0 / 0.9688 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.963e-06/0.8492, allocations: 0 / 0.9688 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.8492, allocations: 0 / 0.9688 GB, free: 12.99 MB / 0.7325 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.001938/0.8512, allocations: 0.9806 MB / 0.9697 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.8512, allocations: 8.844 kB / 0.9697 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003029/0.8543, allocations: 0.6532 MB / 0.9704 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.8553, allocations: 0.5176 MB / 0.9709 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.8554, allocations: 46.62 kB / 0.9709 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.779e-05/0.8555, allocations: 52.81 kB / 0.971 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.8577, allocations: 1.015 MB / 0.972 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.8577, allocations: 1.219 kB / 0.972 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.757e-05/0.8578, allocations: 29.77 kB / 0.972 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-05/0.8579, allocations: 47.78 kB / 0.972 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.8603, allocations: 1.011 MB / 0.973 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004845/0.8652, allocations: 3.52 MB / 0.9765 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.8667, allocations: 0.5099 MB / 0.977 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000601/0.8673, allocations: 249.7 kB / 0.9772 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.8674, allocations: 12.36 kB / 0.9772 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.8674, allocations: 35.56 kB / 0.9773 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 2.705e-06/0.8674, allocations: 1.469 kB / 0.9773 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.007332/0.8748, allocations: 2.22 MB / 0.9794 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.8749, allocations: 55.41 kB / 0.9795 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007289/0.8756, allocations: 0.5627 MB / 0.98 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.8757, allocations: 33.7 kB / 0.9801 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/0.876, allocations: 360.1 kB / 0.9804 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.8761, allocations: 145.9 kB / 0.9805 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.8762, allocations: 8 kB / 0.9805 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.8764, allocations: 374.8 kB / 0.9809 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.877, allocations: 272.9 kB / 0.9812 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006827/0.8777, allocations: 385.8 kB / 0.9815 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006555/0.8784, allocations: 305.7 kB / 0.9818 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.8784, allocations: 0 / 0.9818 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002326/0.8807, allocations: 0.9743 MB / 0.9828 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.8809, allocations: 188.4 kB / 0.983 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.8809, allocations: 4 kB / 0.983 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.882, allocations: 284.8 kB / 0.9832 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.8826, allocations: 131.8 kB / 0.9834 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007405/0.89, allocations: 8.458 MB / 0.9916 GB, free: 7.945 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009166/0.891, allocations: 60 kB / 0.9917 GB, free: 7.887 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.891, allocations: 23.94 kB / 0.9917 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.891, allocations: 4 kB / 0.9917 GB, free: 7.859 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002541/0.8936, allocations: 1.081 MB / 0.9928 GB, free: 6.703 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.8936, allocations: 7.938 kB / 0.9928 GB, free: 6.695 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007601/0.8944, allocations: 221.2 kB / 0.993 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/0.895, allocations: 131.8 kB / 0.9931 GB, free: 6.332 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006611/0.9016, allocations: 8.16 MB / 1.001 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008598/0.9025, allocations: 56.02 kB / 1.001 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.529e-05/0.9026, allocations: 23.98 kB / 1.001 GB, free: 13.3 MB / 0.7637 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.0007175/0.9033, allocations: 316.9 kB / 1.001 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.9035, allocations: 63.25 kB / 1.002 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.9036, allocations: 82.38 kB / 1.002 GB, free: 12.83 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.9037, allocations: 4 kB / 1.002 GB, free: 12.83 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/0.9037, allocations: 7.953 kB / 1.002 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.9037, allocations: 3.984 kB / 1.002 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009211/0.9046, allocations: 0.6377 MB / 1.002 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.9046, allocations: 0 / 1.002 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.9051, allocations: 103.9 kB / 1.002 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009431/0.9061, allocations: 260.8 kB / 1.003 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.889e-05/0.9061, allocations: 7.984 kB / 1.003 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007222/0.9133, allocations: 8.42 MB / 1.011 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.9134, allocations: 0 / 1.011 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.9157, allocations: 0.9561 MB / 1.012 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003662/0.9161, allocations: 184.2 kB / 1.012 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.648e-05/0.9162, allocations: 8.188 kB / 1.012 GB, free: 1.324 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004705/0.9167, allocations: 55.94 kB / 1.012 GB, free: 1.27 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.9168, allocations: 39.88 kB / 1.012 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.9168, allocations: 15.98 kB / 1.012 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005328/0.9174, allocations: 399.1 kB / 1.012 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of sort global known variables: time 5.71e-07/0.9174, allocations: 4 kB / 1.012 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00122/0.9186, allocations: 296 kB / 1.013 GB, free: 0.5391 MB / 0.7637 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.0001877/0.9188, allocations: 115 kB / 1.013 GB, free: 428 kB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003815/0.9226, allocations: 2.419 MB / 1.015 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.9227, allocations: 0 / 1.015 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.9241, allocations: 1.019 MB / 1.016 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.9253, allocations: 219.7 kB / 1.016 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.928, allocations: 1.532 MB / 1.018 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006473/0.9287, allocations: 0.9821 MB / 1.019 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006256/0.9293, allocations: 149.4 kB / 1.019 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.9295, allocations: 47.42 kB / 1.019 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of SimCode: time 1.092e-06/0.9295, allocations: 0 / 1.019 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of Templates: time 0.02267/0.9522, allocations: 12.49 MB / 1.031 GB, free: 13.42 MB / 0.795 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)