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.001675/0.001675, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001817/0.001817, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.493/1.493, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.692/2.692, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 59.91 kB / 1.055 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9013/0.903, allocations: 157.4 MB / 1.208 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009249/0.9122, allocations: 6.298 MB / 1.215 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007565/0.9198, allocations: 4.537 MB / 1.219 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007496/0.9206, allocations: 23.88 kB / 1.219 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00272/0.9234, allocations: 0.9142 MB / 1.22 GB, free: 2.004 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002433/0.9259, allocations: 0.7687 MB / 1.221 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008947/0.9268, allocations: 331.4 kB / 1.221 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001581/0.9284, allocations: 1.125 MB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.9294, allocations: 0.6789 MB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007714/0.9302, allocations: 490.3 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009928/0.9312, allocations: 0.4942 MB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002149/0.9314, allocations: 68 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007544/0.9322, allocations: 279.5 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003151/0.9325, allocations: 251.2 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0006279/0.9331, allocations: 409.9 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.9347, allocations: 1.075 MB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.9347, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.684e-06/0.9347, allocations: 3.938 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.373e-05/0.9347, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 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.002529/0.9373, allocations: 1.098 MB / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/0.9373, allocations: 8.031 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003395/0.9407, allocations: 0.6319 MB / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009779/0.9417, allocations: 0.5736 MB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/0.9418, allocations: 37.69 kB / 1.228 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.9419, allocations: 60.11 kB / 1.228 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.944, allocations: 1.018 MB / 1.229 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.944, allocations: 0 / 1.229 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.659e-05/0.9441, allocations: 24 kB / 1.229 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.2e-05/0.9442, allocations: 49.28 kB / 1.229 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002463/0.9467, allocations: 1 MB / 1.23 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.951, allocations: 3.482 MB / 1.233 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.9525, allocations: 498.2 kB / 1.234 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005738/0.9531, allocations: 232.7 kB / 1.234 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.9531, allocations: 4 kB / 1.234 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.9532, allocations: 34.56 kB / 1.234 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=31): time 2.194e-06/0.9532, allocations: 0 / 1.234 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of matching and sorting (n=43): time 0.007006/0.9602, allocations: 2.02 MB / 1.236 GB, free: 0.7891 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.9602, allocations: 55.41 kB / 1.236 GB, free: 0.7227 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006788/0.9609, allocations: 0.5627 MB / 1.237 GB, free: 156 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.961, allocations: 37.64 kB / 1.237 GB, free: 112 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.9612, allocations: 356.2 kB / 1.237 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.9614, allocations: 153.8 kB / 1.237 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.9616, allocations: 94.16 kB / 1.237 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.9617, allocations: 382.7 kB / 1.238 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007027/0.9624, allocations: 254.9 kB / 1.238 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007563/0.9632, allocations: 361.8 kB / 1.238 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.9647, allocations: 0.6225 MB / 1.239 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.9647, allocations: 0 / 1.239 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002484/0.9672, allocations: 0.9312 MB / 1.24 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.9672, allocations: 4 kB / 1.24 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.9672, allocations: 4.344 kB / 1.24 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.9683, allocations: 272.8 kB / 1.24 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.969, allocations: 123.8 kB / 1.24 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007337/0.9763, allocations: 9.117 MB / 1.249 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006818/0.977, allocations: 39.95 kB / 1.249 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.95e-05/0.9771, allocations: 19.94 kB / 1.249 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000966/0.9781, allocations: 441.9 kB / 1.25 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008257/0.9789, allocations: 361.4 kB / 1.25 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001523/0.9805, allocations: 0.609 MB / 1.251 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.857e-06/0.9805, allocations: 0 / 1.251 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.00275/0.9832, allocations: 1.121 MB / 1.252 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.9833, allocations: 11.94 kB / 1.252 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.9833, allocations: 7.938 kB / 1.252 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008785/0.9842, allocations: 225.4 kB / 1.252 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006263/0.9848, allocations: 119.8 kB / 1.252 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00727/0.9921, allocations: 8.789 MB / 1.261 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007338/0.9929, allocations: 44.02 kB / 1.261 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.9929, allocations: 20 kB / 1.261 GB, free: 5.676 MB / 0.9825 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.0002441/0.9932, allocations: 212.1 kB / 1.261 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.9934, allocations: 67.25 kB / 1.261 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002065/0.9936, allocations: 82.38 kB / 1.261 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.9936, allocations: 4.141 kB / 1.261 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.9936, allocations: 0 / 1.261 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.9936, allocations: 3.984 kB / 1.261 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009344/0.9946, allocations: 0.6533 MB / 1.262 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.9946, allocations: 0 / 1.262 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005111/0.9951, allocations: 91.84 kB / 1.262 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009323/0.996, allocations: 252.9 kB / 1.262 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/0.9961, allocations: 8 kB / 1.262 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006893/1.003, allocations: 9.069 MB / 1.271 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.003, allocations: 0 / 1.271 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/1.005, allocations: 0.9131 MB / 1.272 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/1.006, allocations: 184.2 kB / 1.272 GB, free: 9.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/1.006, allocations: 16 kB / 1.272 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/1.006, allocations: 39.95 kB / 1.272 GB, free: 9.125 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/1.006, allocations: 43.89 kB / 1.272 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/1.007, allocations: 12 kB / 1.272 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005396/1.007, allocations: 403.1 kB / 1.272 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/1.007, allocations: 0 / 1.272 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001296/1.008, allocations: 300 kB / 1.273 GB, free: 8.387 MB / 0.9981 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.0001914/1.009, allocations: 119.1 kB / 1.273 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004098/1.013, allocations: 2.348 MB / 1.275 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.013, allocations: 0 / 1.275 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001419/1.014, allocations: 0.9999 MB / 1.276 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/1.015, allocations: 233.6 kB / 1.276 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/1.018, allocations: 1.34 MB / 1.278 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007089/1.019, allocations: 0.9821 MB / 1.279 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/1.019, allocations: 51.42 kB / 1.279 GB, free: 2.027 MB / 0.9981 GB Notification: Performance of SimCode: time 5.91e-07/1.019, allocations: 3.938 kB / 1.279 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of Templates: time 0.03128/1.05, allocations: 27.01 MB / 1.305 GB, free: 7.059 MB / 1.029 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)