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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001494/0.001494, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001687/0.001687, allocations: 187 kB / 17.34 MB, free: 5.762 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.541/2.541, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 59.91 kB / 1.019 GB, free: 9.457 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9115/0.9128, allocations: 151.6 MB / 1.167 GB, free: 3.871 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009817/0.9227, allocations: 6.306 MB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.007601/0.9303, allocations: 4.538 MB / 1.178 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007013/0.931, allocations: 23.88 kB / 1.178 GB, free: 8.961 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.9337, allocations: 0.9171 MB / 1.179 GB, free: 8.043 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.9361, allocations: 0.7824 MB / 1.18 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.937, allocations: 328.2 kB / 1.18 GB, free: 6.938 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001812/0.9388, allocations: 1.126 MB / 1.181 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.94, allocations: 0.6808 MB / 1.182 GB, free: 5.125 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009712/0.941, allocations: 490.3 kB / 1.182 GB, free: 4.645 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.9421, allocations: 498.1 kB / 1.183 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.9423, allocations: 68 kB / 1.183 GB, free: 4.09 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007159/0.943, allocations: 287.5 kB / 1.183 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003302/0.9433, allocations: 247.2 kB / 1.183 GB, free: 3.566 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006023/0.9439, allocations: 409.9 kB / 1.184 GB, free: 3.164 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.9455, allocations: 1.08 MB / 1.185 GB, free: 2.082 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.9455, allocations: 0 / 1.185 GB, free: 2.082 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.324e-06/0.9455, allocations: 4 kB / 1.185 GB, free: 2.078 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.042e-05/0.9455, allocations: 0 / 1.185 GB, free: 2.078 MB / 0.9044 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.00254/0.9481, allocations: 1.094 MB / 1.186 GB, free: 0.9336 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.9481, allocations: 11.97 kB / 1.186 GB, free: 0.9219 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00313/0.9513, allocations: 0.6319 MB / 1.186 GB, free: 292 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.9524, allocations: 0.5736 MB / 1.187 GB, free: 15.67 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.9525, allocations: 33.69 kB / 1.187 GB, free: 15.64 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.9526, allocations: 64.05 kB / 1.187 GB, free: 15.57 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.9547, allocations: 1.014 MB / 1.188 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.9547, allocations: 0 / 1.188 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-05/0.9548, allocations: 24 kB / 1.188 GB, free: 14.49 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.902e-05/0.9549, allocations: 49.28 kB / 1.188 GB, free: 14.45 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.9572, allocations: 1 MB / 1.189 GB, free: 13.44 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004604/0.9618, allocations: 3.486 MB / 1.192 GB, free: 9.648 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.9631, allocations: 499.4 kB / 1.193 GB, free: 9.152 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005191/0.9637, allocations: 228.7 kB / 1.193 GB, free: 8.926 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.9637, allocations: 0 / 1.193 GB, free: 8.926 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.9638, allocations: 42.55 kB / 1.193 GB, free: 8.875 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.9638, allocations: 4 kB / 1.193 GB, free: 8.871 MB / 0.92 GB Notification: Performance of matching and sorting (n=43): time 0.006681/0.9704, allocations: 2.019 MB / 1.195 GB, free: 6.809 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.9705, allocations: 55.41 kB / 1.195 GB, free: 6.742 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/0.9713, allocations: 0.5743 MB / 1.196 GB, free: 6.16 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.9714, allocations: 29.7 kB / 1.196 GB, free: 6.125 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.9716, allocations: 360.2 kB / 1.196 GB, free: 5.77 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.9718, allocations: 149.8 kB / 1.196 GB, free: 5.621 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.9719, allocations: 90.16 kB / 1.196 GB, free: 5.527 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.9721, allocations: 382.7 kB / 1.197 GB, free: 5.145 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006538/0.9728, allocations: 258.9 kB / 1.197 GB, free: 4.887 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007093/0.9735, allocations: 357.8 kB / 1.197 GB, free: 4.492 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.9748, allocations: 0.6226 MB / 1.198 GB, free: 3.828 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.9748, allocations: 0 / 1.198 GB, free: 3.828 MB / 0.92 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002462/0.9773, allocations: 0.9312 MB / 1.199 GB, free: 2.871 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.9773, allocations: 6.812 kB / 1.199 GB, free: 2.867 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.9774, allocations: 4 kB / 1.199 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.9785, allocations: 273 kB / 1.199 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.9792, allocations: 123.8 kB / 1.199 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008078/0.9873, allocations: 9.109 MB / 1.208 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007036/0.988, allocations: 44.02 kB / 1.208 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/0.9881, allocations: 20 kB / 1.208 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009689/0.9891, allocations: 433 kB / 1.209 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007228/0.9898, allocations: 362.6 kB / 1.209 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00137/0.9912, allocations: 0.6129 MB / 1.209 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.806e-06/0.9912, allocations: 0 / 1.209 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002651/0.9939, allocations: 1.113 MB / 1.211 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.9939, allocations: 18.42 kB / 1.211 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.9939, allocations: 7.938 kB / 1.211 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008175/0.9947, allocations: 217.2 kB / 1.211 GB, free: 5.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.9954, allocations: 119.8 kB / 1.211 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006841/1.002, allocations: 8.803 MB / 1.22 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006753/1.003, allocations: 43.89 kB / 1.22 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.293e-05/1.003, allocations: 27.92 kB / 1.22 GB, free: 11.7 MB / 0.9512 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.0002502/1.003, allocations: 212.1 kB / 1.22 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/1.003, allocations: 63.25 kB / 1.22 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/1.004, allocations: 82.38 kB / 1.22 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/1.004, allocations: 4 kB / 1.22 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/1.004, allocations: 0 / 1.22 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/1.004, allocations: 3.984 kB / 1.22 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009253/1.005, allocations: 0.6455 MB / 1.221 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/1.005, allocations: 0 / 1.221 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005142/1.005, allocations: 91.84 kB / 1.221 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000993/1.006, allocations: 257 kB / 1.221 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/1.006, allocations: 12 kB / 1.221 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007209/1.013, allocations: 9.054 MB / 1.23 GB, free: 372 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.013, allocations: 4.031 kB / 1.23 GB, free: 368 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/1.016, allocations: 0.9247 MB / 1.231 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003822/1.016, allocations: 184.2 kB / 1.231 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.016, allocations: 8.188 kB / 1.231 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005372/1.017, allocations: 31.95 kB / 1.231 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/1.017, allocations: 47.92 kB / 1.231 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/1.017, allocations: 12 kB / 1.231 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0005376/1.018, allocations: 407.1 kB / 1.231 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.665e-06/1.018, allocations: 4 kB / 1.231 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001232/1.019, allocations: 303.9 kB / 1.232 GB, free: 14.41 MB / 0.9669 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.0001633/1.019, allocations: 103.2 kB / 1.232 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003891/1.023, allocations: 2.357 MB / 1.234 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.023, allocations: 0 / 1.234 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001401/1.025, allocations: 1 MB / 1.235 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/1.026, allocations: 236.2 kB / 1.235 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/1.028, allocations: 1.338 MB / 1.237 GB, free: 9.109 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007348/1.029, allocations: 0.9898 MB / 1.237 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001902/1.029, allocations: 47.42 kB / 1.238 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/1.029, allocations: 0 / 1.238 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of Templates: time 0.03058/1.06, allocations: 27.02 MB / 1.264 GB, free: 13.07 MB / 0.9981 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)