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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00618/0.006181, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.00137/0.00137, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.38/1.38, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.779/2.779, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 62.02 kB / 0.899 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2713, allocations: 157.4 MB / 1.053 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008754/0.2801, allocations: 6.304 MB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007066/0.2872, allocations: 4.514 MB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007996/0.2881, allocations: 23.88 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.2906, allocations: 0.8632 MB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002403/0.293, allocations: 0.6997 MB / 1.065 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008062/0.2938, allocations: 290.8 kB / 1.065 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001897/0.2958, allocations: 1.441 MB / 1.067 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008626/0.2966, allocations: 477.8 kB / 1.067 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007221/0.2974, allocations: 426.3 kB / 1.067 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000913/0.2983, allocations: 0.498 MB / 1.068 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.2985, allocations: 48 kB / 1.068 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009106/0.2994, allocations: 319.4 kB / 1.068 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000388/0.2998, allocations: 219.3 kB / 1.068 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0006217/0.3004, allocations: 382 kB / 1.069 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.3016, allocations: 0.8378 MB / 1.07 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3017, allocations: 0 / 1.07 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3017, allocations: 0 / 1.07 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.14e-05/0.3017, allocations: 0 / 1.07 GB, free: 6.879 MB / 0.8262 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.002686/0.3044, allocations: 1.091 MB / 1.071 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3045, allocations: 12.03 kB / 1.071 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003326/0.3078, allocations: 0.628 MB / 1.071 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.3088, allocations: 0.5463 MB / 1.072 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.3089, allocations: 41.69 kB / 1.072 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.309, allocations: 52.11 kB / 1.072 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.3113, allocations: 1.025 MB / 1.073 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3113, allocations: 3.938 kB / 1.073 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.959e-05/0.3114, allocations: 20 kB / 1.073 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-05/0.3115, allocations: 45.3 kB / 1.073 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.314, allocations: 1.012 MB / 1.074 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005233/0.3192, allocations: 3.494 MB / 1.077 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.3207, allocations: 0.4943 MB / 1.078 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005549/0.3213, allocations: 224.6 kB / 1.078 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.3214, allocations: 7.984 kB / 1.078 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.3214, allocations: 38.56 kB / 1.078 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 3.316e-06/0.3214, allocations: 4 kB / 1.078 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.007322/0.3287, allocations: 2.008 MB / 1.08 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.3288, allocations: 55.41 kB / 1.08 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007461/0.3296, allocations: 0.5743 MB / 1.081 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3296, allocations: 33.7 kB / 1.081 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.3299, allocations: 356.2 kB / 1.081 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.3301, allocations: 149.8 kB / 1.081 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.3303, allocations: 94.09 kB / 1.081 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3305, allocations: 378.7 kB / 1.082 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006917/0.3312, allocations: 262.8 kB / 1.082 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007386/0.3319, allocations: 361.8 kB / 1.082 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3333, allocations: 0.6225 MB / 1.083 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.3333, allocations: 4 kB / 1.083 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00249/0.3358, allocations: 0.9273 MB / 1.084 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3358, allocations: 9.094 kB / 1.084 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3358, allocations: 7.984 kB / 1.084 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.337, allocations: 273 kB / 1.084 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/0.3376, allocations: 115.8 kB / 1.084 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007749/0.3454, allocations: 8.453 MB / 1.092 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/0.3461, allocations: 39.95 kB / 1.092 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3463, allocations: 24.05 kB / 1.093 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009851/0.3473, allocations: 433 kB / 1.093 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000765/0.348, allocations: 355.3 kB / 1.093 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001355/0.3494, allocations: 0.6129 MB / 1.094 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.35e-06/0.3494, allocations: 4 kB / 1.094 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002618/0.3521, allocations: 1.117 MB / 1.095 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3521, allocations: 9.406 kB / 1.095 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.3521, allocations: 4 kB / 1.095 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008881/0.353, allocations: 229.3 kB / 1.095 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006588/0.3537, allocations: 123.8 kB / 1.095 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.3603, allocations: 8.149 MB / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007117/0.361, allocations: 48 kB / 1.103 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.041e-05/0.3611, allocations: 20 kB / 1.103 GB, free: 1.895 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.000261/0.3614, allocations: 210.1 kB / 1.104 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.3616, allocations: 67.25 kB / 1.104 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.3618, allocations: 78.38 kB / 1.104 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3618, allocations: 7.984 kB / 1.104 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3618, allocations: 4.141 kB / 1.104 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3618, allocations: 3.984 kB / 1.104 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.3628, allocations: 0.6494 MB / 1.104 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3628, allocations: 0 / 1.104 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005317/0.3634, allocations: 91.86 kB / 1.104 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3644, allocations: 264.8 kB / 1.105 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.3645, allocations: 8 kB / 1.105 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006756/0.3713, allocations: 8.396 MB / 1.113 GB, free: 7.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3713, allocations: 0 / 1.113 GB, free: 7.25 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.3737, allocations: 0.917 MB / 1.114 GB, free: 6.297 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003173/0.374, allocations: 188.1 kB / 1.114 GB, free: 6.094 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.3741, allocations: 7.938 kB / 1.114 GB, free: 6.086 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004986/0.3746, allocations: 47.94 kB / 1.114 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3748, allocations: 31.95 kB / 1.114 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.3748, allocations: 15.98 kB / 1.114 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004698/0.3753, allocations: 403.1 kB / 1.114 GB, free: 5.605 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3753, allocations: 0 / 1.114 GB, free: 5.605 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00107/0.3764, allocations: 304 kB / 1.115 GB, free: 5.309 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.0001345/0.3765, allocations: 107.9 kB / 1.115 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00368/0.3802, allocations: 2.348 MB / 1.117 GB, free: 2.691 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.3802, allocations: 0 / 1.117 GB, free: 2.691 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.3816, allocations: 1.004 MB / 1.118 GB, free: 1.609 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.3828, allocations: 213.5 kB / 1.118 GB, free: 1.398 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.3856, allocations: 1.612 MB / 1.12 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.3863, allocations: 0.9859 MB / 1.121 GB, free: 14.74 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.3865, allocations: 47.42 kB / 1.121 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of SimCode: time 8.72e-07/0.3865, allocations: 0 / 1.121 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of Templates: time 0.02852/0.415, allocations: 26.95 MB / 1.147 GB, free: 3.785 MB / 0.9044 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)