Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001094/0.001094, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 186.1 kB / 16.92 MB, free: 6.703 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.412/1.412, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.651/2.651, allocations: 437.8 MB / 0.7128 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004326, allocations: 12 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7098/0.7103, allocations: 153.8 MB / 1.024 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006726/0.717, allocations: 5.885 MB / 1.029 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006516/0.7236, allocations: 4.453 MB / 1.034 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006806/0.7243, allocations: 23.94 kB / 1.034 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006131/0.7249, allocations: 150.9 kB / 1.034 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.002194/0.7271, allocations: 0.7035 MB / 1.035 GB, free: 4.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.728, allocations: 303 kB / 1.035 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001837/0.7298, allocations: 1.441 MB / 1.036 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008305/0.7307, allocations: 0.5319 MB / 1.037 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007011/0.7314, allocations: 398.3 kB / 1.037 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008952/0.7323, allocations: 470.1 kB / 1.038 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.7325, allocations: 43.92 kB / 1.038 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006605/0.7331, allocations: 303.4 kB / 1.038 GB, free: 1.082 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.7334, allocations: 215.2 kB / 1.038 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.7339, allocations: 379.7 kB / 1.039 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009157/0.7348, allocations: 0.8222 MB / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.7349, allocations: 0 / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.864e-06/0.7349, allocations: 0 / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.597e-05/0.7349, allocations: 0 / 1.039 GB, free: 15.66 MB / 0.795 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.002031/0.7369, allocations: 0.9736 MB / 1.04 GB, free: 14.64 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.737, allocations: 8.031 kB / 1.04 GB, free: 14.64 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00364/0.7406, allocations: 0.6475 MB / 1.041 GB, free: 13.99 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009287/0.7416, allocations: 0.5424 MB / 1.042 GB, free: 13.41 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.7416, allocations: 37.69 kB / 1.042 GB, free: 13.37 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.7418, allocations: 60.11 kB / 1.042 GB, free: 13.31 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.744, allocations: 1.022 MB / 1.043 GB, free: 12.24 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.7441, allocations: 0 / 1.043 GB, free: 12.24 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.591e-05/0.7441, allocations: 24 kB / 1.043 GB, free: 12.22 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.275e-05/0.7442, allocations: 45.28 kB / 1.043 GB, free: 12.18 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002698/0.7469, allocations: 1.02 MB / 1.044 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004589/0.7515, allocations: 3.525 MB / 1.047 GB, free: 7.324 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.7532, allocations: 0.5114 MB / 1.048 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006283/0.7538, allocations: 245.2 kB / 1.048 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.7539, allocations: 7.984 kB / 1.048 GB, free: 6.555 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.7539, allocations: 42.5 kB / 1.048 GB, free: 6.504 MB / 0.795 GB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.7539, allocations: 0 / 1.048 GB, free: 6.504 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.008318/0.7623, allocations: 2.239 MB / 1.05 GB, free: 4.219 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.7623, allocations: 55.41 kB / 1.05 GB, free: 4.152 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009058/0.7632, allocations: 0.5665 MB / 1.051 GB, free: 3.578 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.7633, allocations: 33.7 kB / 1.051 GB, free: 3.539 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000297/0.7636, allocations: 356.2 kB / 1.051 GB, free: 3.188 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.7638, allocations: 149.8 kB / 1.051 GB, free: 3.039 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.7639, allocations: 41.7 kB / 1.051 GB, free: 2.992 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000214/0.7641, allocations: 378.7 kB / 1.052 GB, free: 2.613 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000761/0.7649, allocations: 272.9 kB / 1.052 GB, free: 2.344 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008313/0.7657, allocations: 385.8 kB / 1.052 GB, free: 1.926 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.7674, allocations: 0.6733 MB / 1.053 GB, free: 1.211 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.7674, allocations: 0 / 1.053 GB, free: 1.211 MB / 0.795 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002825/0.7702, allocations: 0.9856 MB / 1.054 GB, free: 204 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.7704, allocations: 182.3 kB / 1.054 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.7704, allocations: 4 kB / 1.054 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.7716, allocations: 276.9 kB / 1.054 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000668/0.7723, allocations: 131.8 kB / 1.054 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008256/0.7806, allocations: 8.48 MB / 1.063 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007449/0.7813, allocations: 56.02 kB / 1.063 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.7814, allocations: 12 kB / 1.063 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.7814, allocations: 11.92 kB / 1.063 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002761/0.7842, allocations: 1.085 MB / 1.064 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.7842, allocations: 3.938 kB / 1.064 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008432/0.7851, allocations: 229.2 kB / 1.064 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/0.7857, allocations: 127.8 kB / 1.064 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007088/0.7928, allocations: 8.164 MB / 1.072 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007007/0.7936, allocations: 60.02 kB / 1.072 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/0.7936, allocations: 27.97 kB / 1.072 GB, free: 11.62 MB / 0.8262 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.0005497/0.7942, allocations: 318.4 kB / 1.073 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.7944, allocations: 67.16 kB / 1.073 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.7946, allocations: 74.38 kB / 1.073 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.7946, allocations: 8 kB / 1.073 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.7946, allocations: 4 kB / 1.073 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.7946, allocations: 3.984 kB / 1.073 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.7957, allocations: 0.6416 MB / 1.073 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.7957, allocations: 0 / 1.073 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005787/0.7963, allocations: 99.91 kB / 1.073 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.7973, allocations: 260.8 kB / 1.074 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.7974, allocations: 11.98 kB / 1.074 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008118/0.8055, allocations: 8.423 MB / 1.082 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.8055, allocations: 0 / 1.082 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.8083, allocations: 0.9639 MB / 1.083 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.8086, allocations: 184.4 kB / 1.083 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.8087, allocations: 7.938 kB / 1.083 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005861/0.8093, allocations: 59.94 kB / 1.083 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.8095, allocations: 47.86 kB / 1.083 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.8095, allocations: 12 kB / 1.083 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005495/0.8101, allocations: 403.1 kB / 1.084 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8101, allocations: 0 / 1.084 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001245/0.8113, allocations: 300 kB / 1.084 GB, free: 14.84 MB / 0.8419 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.000161/0.8115, allocations: 107.2 kB / 1.084 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004391/0.8159, allocations: 2.422 MB / 1.086 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.8159, allocations: 0 / 1.086 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.8176, allocations: 1.027 MB / 1.087 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.8189, allocations: 209.6 kB / 1.087 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/0.822, allocations: 1.66 MB / 1.089 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008317/0.8228, allocations: 0.9821 MB / 1.09 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.823, allocations: 47.42 kB / 1.09 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of SimCode: time 1.263e-06/0.823, allocations: 0 / 1.09 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of Templates: time 0.0352/0.8582, allocations: 26.91 MB / 1.116 GB, free: 13.23 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)