Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.00113/0.00113, allocations: 108 kB / 15.6 MB, free: 132 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.001722/0.001722, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.463/1.463, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.666/2.666, allocations: 437 MB / 0.7103 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001624, allocations: 63.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7603/0.7619, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006058/0.768, allocations: 4.11 MB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002643/0.7707, allocations: 1.589 MB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.7709, allocations: 7.938 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.7726, allocations: 0.576 MB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005035/0.7731, allocations: 238.8 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005445/0.7737, allocations: 222.8 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005194/0.7742, allocations: 0.549 MB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007032/0.7749, allocations: 467.7 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.7752, allocations: 231.3 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004684/0.7757, allocations: 247.2 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.224e-05/0.7757, allocations: 36 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003218/0.7761, allocations: 171.6 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.7762, allocations: 151.5 kB / 1.026 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.7764, allocations: 199.1 kB / 1.026 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.777, allocations: 0.5101 MB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.777, allocations: 4 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.513e-06/0.777, allocations: 0 / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.777, allocations: 0 / 1.026 GB, free: 9.203 MB / 0.7794 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.00125/0.7783, allocations: 0.6826 MB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.7783, allocations: 8.031 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007162/0.7791, allocations: 112.4 kB / 1.027 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.7795, allocations: 291.7 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.372e-05/0.7796, allocations: 59.23 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.7796, allocations: 36.38 kB / 1.027 GB, free: 7.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008233/0.7805, allocations: 0.5048 MB / 1.028 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.7805, allocations: 0 / 1.028 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.7805, allocations: 12 kB / 1.028 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.952e-05/0.7806, allocations: 32.98 kB / 1.028 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.7813, allocations: 375.7 kB / 1.028 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.7837, allocations: 2.212 MB / 1.031 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006901/0.7844, allocations: 260 kB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003741/0.7848, allocations: 152.8 kB / 1.031 GB, free: 4.137 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.7848, allocations: 11.94 kB / 1.031 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.7848, allocations: 30.56 kB / 1.031 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 1.213e-06/0.7849, allocations: 0 / 1.031 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001495/0.7864, allocations: 0.5729 MB / 1.032 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.7864, allocations: 51.41 kB / 1.032 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.7866, allocations: 228.9 kB / 1.032 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.7867, allocations: 29.69 kB / 1.032 GB, free: 3.133 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.7868, allocations: 211.7 kB / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.254e-05/0.7869, allocations: 63.02 kB / 1.032 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.731e-05/0.787, allocations: 53.7 kB / 1.032 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7871, allocations: 334.8 kB / 1.032 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.7873, allocations: 96.8 kB / 1.033 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.7876, allocations: 183.5 kB / 1.033 GB, free: 2.148 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004716/0.7881, allocations: 274.6 kB / 1.033 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.7881, allocations: 4 kB / 1.033 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008212/0.7889, allocations: 377 kB / 1.033 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.789, allocations: 8 kB / 1.033 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.789, allocations: 4.297 kB / 1.033 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005094/0.7895, allocations: 113.6 kB / 1.033 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.7897, allocations: 55.91 kB / 1.034 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.793, allocations: 3.046 MB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.7933, allocations: 39.77 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.7933, allocations: 15.94 kB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003438/0.7937, allocations: 220 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002645/0.7939, allocations: 180.6 kB / 1.037 GB, free: 13.46 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004377/0.7944, allocations: 261.3 kB / 1.037 GB, free: 13.18 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.7944, allocations: 0 / 1.037 GB, free: 13.18 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007488/0.7951, allocations: 351.7 kB / 1.037 GB, free: 12.82 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.7952, allocations: 11.94 kB / 1.038 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.7952, allocations: 4 kB / 1.038 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/0.7955, allocations: 85.03 kB / 1.038 GB, free: 12.72 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.7957, allocations: 59.84 kB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.7976, allocations: 1.613 MB / 1.039 GB, free: 10.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.7979, allocations: 27.83 kB / 1.039 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.7979, allocations: 11.94 kB / 1.039 GB, free: 10.87 MB / 0.795 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.798, allocations: 204.3 kB / 1.039 GB, free: 10.66 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.7981, allocations: 23.7 kB / 1.039 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.7981, allocations: 30.19 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.7982, allocations: 0 / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7982, allocations: 8 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.7982, allocations: 7.922 kB / 1.04 GB, free: 10.6 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.7995, allocations: 0.8267 MB / 1.04 GB, free: 9.691 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.7995, allocations: 3.984 kB / 1.04 GB, free: 9.688 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.7997, allocations: 27.98 kB / 1.04 GB, free: 9.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003673/0.8001, allocations: 101.7 kB / 1.04 GB, free: 9.555 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.8001, allocations: 4 kB / 1.04 GB, free: 9.551 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002789/0.8029, allocations: 3.017 MB / 1.043 GB, free: 6.25 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8029, allocations: 0 / 1.043 GB, free: 6.25 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/0.8037, allocations: 418.5 kB / 1.044 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.8038, allocations: 124.7 kB / 1.044 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.8038, allocations: 4 kB / 1.044 GB, free: 5.668 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.804, allocations: 11.98 kB / 1.044 GB, free: 5.656 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.364e-05/0.8041, allocations: 23.91 kB / 1.044 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.8041, allocations: 4 kB / 1.044 GB, free: 5.629 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001439/0.8043, allocations: 164.5 kB / 1.044 GB, free: 5.469 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8043, allocations: 0 / 1.044 GB, free: 5.469 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006109/0.8049, allocations: 167.4 kB / 1.044 GB, free: 5.305 MB / 0.795 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.805, allocations: 107.2 kB / 1.044 GB, free: 5.191 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001897/0.8069, allocations: 0.7723 MB / 1.045 GB, free: 4.383 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.8069, allocations: 4.062 kB / 1.045 GB, free: 4.379 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000778/0.8077, allocations: 373.1 kB / 1.046 GB, free: 3.988 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.8082, allocations: 66 kB / 1.046 GB, free: 3.922 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.8092, allocations: 0.5762 MB / 1.046 GB, free: 3.312 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.8096, allocations: 0.8146 MB / 1.047 GB, free: 2.473 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000186/0.8098, allocations: 54.25 kB / 1.047 GB, free: 2.418 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.8098, allocations: 19.44 kB / 1.047 GB, free: 2.398 MB / 0.795 GB Notification: Performance of SimCode: time 4e-07/0.8098, allocations: 0 / 1.047 GB, free: 2.398 MB / 0.795 GB Notification: Performance of Templates: time 0.008586/0.8184, allocations: 4.658 MB / 1.052 GB, free: 13.78 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)