Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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: 107.7 kB / 15.99 MB, free: 5.91 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.001549/0.001549, allocations: 193.6 kB / 16.91 MB, free: 5.754 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.34/1.34, allocations: 222.9 MB / 240.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.552/2.552, allocations: 469.8 MB / 0.7427 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001836, allocations: 66.45 kB / 0.9087 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3161, allocations: 159.1 MB / 1.064 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008372/0.3246, allocations: 6.3 MB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006711/0.3313, allocations: 4.487 MB / 1.075 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005137/0.3319, allocations: 23.88 kB / 1.075 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.3342, allocations: 0.864 MB / 1.076 GB, free: 3.363 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002152/0.3364, allocations: 0.7048 MB / 1.076 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007329/0.3371, allocations: 294.9 kB / 1.076 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.3386, allocations: 1.133 MB / 1.078 GB, free: 1.234 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.3397, allocations: 0.7749 MB / 1.078 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4834/0.8231, allocations: 471.9 kB / 1.079 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.8243, allocations: 0.5121 MB / 1.079 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.8245, allocations: 69.81 kB / 1.079 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006311/0.8252, allocations: 279.5 kB / 1.08 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002811/0.8255, allocations: 253.5 kB / 1.08 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.8259, allocations: 409.3 kB / 1.08 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.8269, allocations: 0.8507 MB / 1.081 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.8269, allocations: 0 / 1.081 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8269, allocations: 0 / 1.081 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.8269, allocations: 0 / 1.081 GB, free: 11.46 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.001767/0.8287, allocations: 1.089 MB / 1.082 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.8288, allocations: 10.72 kB / 1.082 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.832, allocations: 0.6365 MB / 1.083 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.8328, allocations: 0.5387 MB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.8328, allocations: 40.44 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.627e-05/0.8329, allocations: 50.64 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.835, allocations: 1.02 MB / 1.084 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.835, allocations: 0 / 1.084 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.397e-05/0.8351, allocations: 29.97 kB / 1.084 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.442e-05/0.8351, allocations: 50.19 kB / 1.084 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.8375, allocations: 1.009 MB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003941/0.8414, allocations: 3.482 MB / 1.089 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.8428, allocations: 0.4929 MB / 1.089 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005298/0.8434, allocations: 223.6 kB / 1.09 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.8434, allocations: 4.359 kB / 1.09 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.8435, allocations: 39.72 kB / 1.09 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.254e-06/0.8435, allocations: 0 / 1.09 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.006802/0.8503, allocations: 2.027 MB / 1.092 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.8503, allocations: 56.3 kB / 1.092 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000784/0.8511, allocations: 0.5715 MB / 1.092 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.8512, allocations: 32.73 kB / 1.092 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.8514, allocations: 361.1 kB / 1.093 GB, free: 7.059 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.8515, allocations: 149.5 kB / 1.093 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.8517, allocations: 91.33 kB / 1.093 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.8518, allocations: 370.6 kB / 1.093 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006948/0.8525, allocations: 260.2 kB / 1.093 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000695/0.8532, allocations: 364.9 kB / 1.094 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.8545, allocations: 0.6212 MB / 1.094 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.8545, allocations: 9.031 kB / 1.094 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002372/0.8569, allocations: 0.9359 MB / 1.095 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.8569, allocations: 6.938 kB / 1.095 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.8569, allocations: 2.938 kB / 1.095 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.8581, allocations: 280.3 kB / 1.096 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006288/0.8588, allocations: 117.3 kB / 1.096 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006755/0.8655, allocations: 9.106 MB / 1.105 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/0.8664, allocations: 43.06 kB / 1.105 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.8665, allocations: 22.84 kB / 1.105 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00104/0.8675, allocations: 440.5 kB / 1.105 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007117/0.8682, allocations: 354.9 kB / 1.105 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001356/0.8696, allocations: 0.6094 MB / 1.106 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.166e-06/0.8696, allocations: 0.7812 kB / 1.106 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002701/0.8723, allocations: 1.123 MB / 1.107 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.8723, allocations: 5.656 kB / 1.107 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.8723, allocations: 4.625 kB / 1.107 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009026/0.8733, allocations: 236.4 kB / 1.107 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.8739, allocations: 125 kB / 1.107 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008368/0.8823, allocations: 8.793 MB / 1.116 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008414/0.8832, allocations: 44.83 kB / 1.116 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.8832, allocations: 17.88 kB / 1.116 GB, free: 2.797 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.0002744/0.8835, allocations: 211.1 kB / 1.116 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.8837, allocations: 72.53 kB / 1.116 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.8839, allocations: 79.38 kB / 1.116 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.8839, allocations: 4.688 kB / 1.116 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/0.8839, allocations: 1.438 kB / 1.116 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.8839, allocations: 3.703 kB / 1.116 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.8849, allocations: 0.6362 MB / 1.117 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.8849, allocations: 4.688 kB / 1.117 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.8855, allocations: 92.72 kB / 1.117 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.8865, allocations: 260.2 kB / 1.117 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.116e-05/0.8866, allocations: 7.688 kB / 1.117 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008154/0.8948, allocations: 9.065 MB / 1.126 GB, free: 9.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.8948, allocations: 0 / 1.126 GB, free: 9.34 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.8973, allocations: 0.9214 MB / 1.127 GB, free: 8.922 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.8977, allocations: 180.4 kB / 1.127 GB, free: 8.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.601e-05/0.8978, allocations: 11.14 kB / 1.127 GB, free: 8.766 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005039/0.8983, allocations: 39.89 kB / 1.127 GB, free: 8.758 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.8985, allocations: 38.58 kB / 1.127 GB, free: 8.75 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.8985, allocations: 9.672 kB / 1.127 GB, free: 8.75 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005662/0.8991, allocations: 403.6 kB / 1.128 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8991, allocations: 0 / 1.128 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001211/0.9003, allocations: 302.7 kB / 1.128 GB, free: 8.539 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.0001744/0.9005, allocations: 115.6 kB / 1.128 GB, free: 8.441 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004181/0.9047, allocations: 2.396 MB / 1.131 GB, free: 6.805 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.9047, allocations: 8.062 kB / 1.131 GB, free: 6.797 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.9062, allocations: 1.008 MB / 1.132 GB, free: 6.016 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.9075, allocations: 235.2 kB / 1.132 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.9104, allocations: 1.622 MB / 1.133 GB, free: 4.977 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006986/0.9111, allocations: 0.9823 MB / 1.134 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.9113, allocations: 51.16 kB / 1.134 GB, free: 4.23 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/0.9113, allocations: 4 kB / 1.134 GB, free: 4.227 MB / 0.8731 GB Notification: Performance of Templates: time 0.03608/0.9474, allocations: 26.96 MB / 1.161 GB, free: 9.789 MB / 0.8887 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)