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.001731/0.001731, allocations: 110.5 kB / 15.99 MB, free: 6.359 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.002005/0.002005, allocations: 189.6 kB / 16.91 MB, free: 6.195 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 / 240.6 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.664/2.664, allocations: 469.4 MB / 0.7423 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001382, allocations: 59.86 kB / 0.9083 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2951, allocations: 159.1 MB / 1.064 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008775/0.3039, allocations: 6.3 MB / 1.07 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006936/0.3109, allocations: 4.487 MB / 1.074 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006886/0.3116, allocations: 23.88 kB / 1.074 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.3142, allocations: 0.8703 MB / 1.075 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002278/0.3165, allocations: 0.6993 MB / 1.076 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.3174, allocations: 291.6 kB / 1.076 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001686/0.3191, allocations: 1.129 MB / 1.077 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.3204, allocations: 0.7788 MB / 1.078 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007704/0.3211, allocations: 482.3 kB / 1.078 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4748/0.796, allocations: 0.4991 MB / 1.079 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00027/0.7963, allocations: 69.47 kB / 1.079 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000713/0.797, allocations: 282.7 kB / 1.079 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.7973, allocations: 252.6 kB / 1.079 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004715/0.7977, allocations: 409.1 kB / 1.08 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.7989, allocations: 0.8441 MB / 1.081 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7989, allocations: 1.672 kB / 1.081 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7989, allocations: 0.5 kB / 1.081 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.54e-05/0.7989, allocations: 0.8438 kB / 1.081 GB, free: 11.84 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.001897/0.8008, allocations: 1.089 MB / 1.082 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.8009, allocations: 10.94 kB / 1.082 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003326/0.8042, allocations: 0.6337 MB / 1.082 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009449/0.8052, allocations: 0.5396 MB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.8052, allocations: 41.67 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.455e-05/0.8053, allocations: 49.62 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.8075, allocations: 1.024 MB / 1.084 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.8075, allocations: 0 / 1.084 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.419e-05/0.8076, allocations: 22.28 kB / 1.084 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-05/0.8077, allocations: 55 kB / 1.084 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.8101, allocations: 1.005 MB / 1.085 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.8144, allocations: 3.494 MB / 1.088 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.8159, allocations: 492.3 kB / 1.089 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005438/0.8164, allocations: 230.8 kB / 1.089 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.8165, allocations: 3.578 kB / 1.089 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.8165, allocations: 37.77 kB / 1.089 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.8165, allocations: 0 / 1.089 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.007172/0.8237, allocations: 2.03 MB / 1.091 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.8238, allocations: 58.52 kB / 1.091 GB, free: 7.949 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008373/0.8246, allocations: 0.5678 MB / 1.092 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/0.8247, allocations: 32.36 kB / 1.092 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.8249, allocations: 353.6 kB / 1.092 GB, free: 7.453 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.825, allocations: 150.1 kB / 1.092 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.8252, allocations: 91.05 kB / 1.092 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.602e-05/0.8253, allocations: 377.3 kB / 1.093 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007328/0.8261, allocations: 260.9 kB / 1.093 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000755/0.8268, allocations: 364.8 kB / 1.093 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.8282, allocations: 0.6228 MB / 1.094 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.8282, allocations: 5.094 kB / 1.094 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002512/0.8307, allocations: 0.9297 MB / 1.095 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.8308, allocations: 6.031 kB / 1.095 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.8308, allocations: 8.125 kB / 1.095 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.832, allocations: 277 kB / 1.095 GB, free: 5.949 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006593/0.8327, allocations: 115 kB / 1.095 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006964/0.8397, allocations: 9.115 MB / 1.104 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008398/0.8406, allocations: 46.69 kB / 1.104 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.8407, allocations: 24.53 kB / 1.104 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001074/0.8417, allocations: 433.8 kB / 1.105 GB, free: 13 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000774/0.8425, allocations: 355.8 kB / 1.105 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001497/0.844, allocations: 0.6098 MB / 1.106 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.07e-06/0.8441, allocations: 1.031 kB / 1.106 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002759/0.8468, allocations: 1.124 MB / 1.107 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.8468, allocations: 8.594 kB / 1.107 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.8469, allocations: 4.297 kB / 1.107 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008961/0.8478, allocations: 224.4 kB / 1.107 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.8484, allocations: 123.6 kB / 1.107 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007103/0.8555, allocations: 8.793 MB / 1.116 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008396/0.8564, allocations: 41.62 kB / 1.116 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.69e-05/0.8565, allocations: 20.31 kB / 1.116 GB, free: 3.191 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.0002586/0.8568, allocations: 208 kB / 1.116 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.857, allocations: 76.02 kB / 1.116 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.8572, allocations: 80.08 kB / 1.116 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.8572, allocations: 4.438 kB / 1.116 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.8573, allocations: 1.812 kB / 1.116 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.8573, allocations: 6.469 kB / 1.116 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.8585, allocations: 0.6438 MB / 1.117 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.8585, allocations: 4.75 kB / 1.117 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005122/0.859, allocations: 88.23 kB / 1.117 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.8602, allocations: 263.3 kB / 1.117 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.8602, allocations: 10.98 kB / 1.117 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007523/0.8678, allocations: 9.059 MB / 1.126 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.8678, allocations: 0 / 1.126 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.8704, allocations: 0.9216 MB / 1.127 GB, free: 9.297 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/0.8708, allocations: 180.8 kB / 1.127 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.871, allocations: 11.05 kB / 1.127 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005779/0.8716, allocations: 35.61 kB / 1.127 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.8718, allocations: 42.05 kB / 1.127 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.083e-05/0.8719, allocations: 13.53 kB / 1.127 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006529/0.8725, allocations: 407.2 kB / 1.127 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8726, allocations: 1.125 kB / 1.127 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001497/0.8741, allocations: 305.2 kB / 1.128 GB, free: 8.91 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.0001707/0.8742, allocations: 106.4 kB / 1.128 GB, free: 8.82 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00429/0.8785, allocations: 2.395 MB / 1.13 GB, free: 7.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.8786, allocations: 0 / 1.13 GB, free: 7.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.8801, allocations: 1.011 MB / 1.131 GB, free: 6.398 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.8814, allocations: 250.5 kB / 1.131 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.8846, allocations: 1.615 MB / 1.133 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000787/0.8854, allocations: 0.9853 MB / 1.134 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.8857, allocations: 48.41 kB / 1.134 GB, free: 4.602 MB / 0.8731 GB Notification: Performance of SimCode: time 1.162e-06/0.8857, allocations: 0 / 1.134 GB, free: 4.602 MB / 0.8731 GB Notification: Performance of Templates: time 0.03715/0.9228, allocations: 26.96 MB / 1.16 GB, free: 10.2 MB / 0.8887 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)