Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000901/0.0009011, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.00117/0.00117, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.647/2.647, allocations: 390.9 MB / 0.666 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003391, allocations: 8 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9347/0.9351, allocations: 142.4 MB / 0.9544 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004129/0.9392, allocations: 3.596 MB / 0.9579 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002404/0.9417, allocations: 1.493 MB / 0.9594 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.9419, allocations: 13.44 kB / 0.9594 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.9421, allocations: 65.12 kB / 0.9595 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004549/0.9426, allocations: 181.6 kB / 0.9597 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.943, allocations: 171.7 kB / 0.9598 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006647/0.9437, allocations: 0.6208 MB / 0.9604 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005034/0.9442, allocations: 390 kB / 0.9608 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.9445, allocations: 182 kB / 0.961 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004715/0.945, allocations: 240.8 kB / 0.9612 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.945, allocations: 18.03 kB / 0.9612 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.9453, allocations: 72.3 kB / 0.9613 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.9454, allocations: 131.5 kB / 0.9614 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.381e-05/0.9455, allocations: 91.27 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.946, allocations: 398.9 kB / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.946, allocations: 0 / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.946, allocations: 0 / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.946, allocations: 0.7812 kB / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001036/0.9471, allocations: 0.6386 MB / 0.9625 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.9471, allocations: 8.969 kB / 0.9625 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007237/0.9479, allocations: 104.6 kB / 0.9626 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.9482, allocations: 291 kB / 0.9629 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.257e-05/0.9483, allocations: 59.16 kB / 0.9629 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.9484, allocations: 29.38 kB / 0.963 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009257/0.9493, allocations: 0.5012 MB / 0.9635 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.9494, allocations: 3.938 kB / 0.9635 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.693e-05/0.9494, allocations: 19.73 kB / 0.9635 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.651e-05/0.9495, allocations: 36.94 kB / 0.9635 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006848/0.9502, allocations: 383.5 kB / 0.9639 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.9526, allocations: 2.221 MB / 0.9661 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.9533, allocations: 261.7 kB / 0.9663 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.9537, allocations: 158.4 kB / 0.9665 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.9537, allocations: 9.922 kB / 0.9665 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.9538, allocations: 40.47 kB / 0.9665 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.784e-06/0.9538, allocations: 0 / 0.9665 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001485/0.9553, allocations: 0.5865 MB / 0.9671 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.9553, allocations: 53.56 kB / 0.9671 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.9556, allocations: 230 kB / 0.9673 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.9556, allocations: 31.7 kB / 0.9674 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.9558, allocations: 210.7 kB / 0.9676 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.861e-05/0.9558, allocations: 62.94 kB / 0.9676 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.9559, allocations: 5.875 kB / 0.9676 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.956, allocations: 331.8 kB / 0.968 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.9563, allocations: 95.25 kB / 0.968 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/0.9566, allocations: 185.3 kB / 0.9682 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.9569, allocations: 129.2 kB / 0.9683 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.9569, allocations: 1 kB / 0.9683 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008791/0.9578, allocations: 378.6 kB / 0.9687 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.9579, allocations: 166.5 kB / 0.9689 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.9579, allocations: 2.656 kB / 0.9689 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004876/0.9584, allocations: 112.6 kB / 0.969 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.9586, allocations: 52.31 kB / 0.969 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.9619, allocations: 2.828 MB / 0.9718 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.9622, allocations: 34.8 kB / 0.9718 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.9622, allocations: 9.031 kB / 0.9718 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/0.9622, allocations: 3.281 kB / 0.9718 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008164/0.9631, allocations: 315 kB / 0.9721 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.9631, allocations: 6.234 kB / 0.9721 GB, free: 9.293 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.9634, allocations: 75.23 kB / 0.9722 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.9636, allocations: 63.09 kB / 0.9723 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.9653, allocations: 1.499 MB / 0.9737 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.9656, allocations: 33.55 kB / 0.9738 GB, free: 7.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.9656, allocations: 12.42 kB / 0.9738 GB, free: 7.766 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002511/0.9659, allocations: 247.8 kB / 0.974 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/0.9659, allocations: 27.48 kB / 0.974 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.614e-05/0.966, allocations: 22.59 kB / 0.9741 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.966, allocations: 7.141 kB / 0.9741 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.966, allocations: 4 kB / 0.9741 GB, free: 7.496 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.966, allocations: 3.984 kB / 0.9741 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.9675, allocations: 0.8353 MB / 0.9749 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.9675, allocations: 0 / 0.9749 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.9677, allocations: 45.22 kB / 0.9749 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.9681, allocations: 100.5 kB / 0.975 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.9681, allocations: 6.062 kB / 0.975 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002914/0.971, allocations: 2.8 MB / 0.9778 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/0.971, allocations: 1.25 kB / 0.9778 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007802/0.9718, allocations: 425.9 kB / 0.9782 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.972, allocations: 118.3 kB / 0.9783 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.972, allocations: 9.375 kB / 0.9783 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.9722, allocations: 16.3 kB / 0.9783 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.9723, allocations: 16.66 kB / 0.9783 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.9723, allocations: 8.562 kB / 0.9783 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001729/0.9725, allocations: 162.4 kB / 0.9785 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9725, allocations: 0 / 0.9785 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007122/0.9732, allocations: 167.8 kB / 0.9787 GB, free: 3.336 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.9733, allocations: 110.1 kB / 0.9788 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001864/0.9752, allocations: 0.7694 MB / 0.9795 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.9752, allocations: 1.156 kB / 0.9795 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007256/0.976, allocations: 371.2 kB / 0.9799 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.9764, allocations: 57.44 kB / 0.9799 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.9779, allocations: 0.709 MB / 0.9806 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.9784, allocations: 0.8105 MB / 0.9814 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002518/0.9786, allocations: 55.11 kB / 0.9815 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.48e-05/0.9787, allocations: 22.16 kB / 0.9815 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of SimCode: time 2.244e-06/0.9787, allocations: 1.344 kB / 0.9815 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of Templates: time 0.01034/0.989, allocations: 4.14 MB / 0.9855 GB, free: 14.13 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)