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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001205/0.001205, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001289/0.001289, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.499/2.499, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 71.88 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7516/0.7529, allocations: 140.4 MB / 0.9489 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005579/0.7585, allocations: 4.13 MB / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002864/0.7614, allocations: 1.586 MB / 0.9545 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003929/0.7618, allocations: 11.31 kB / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.7633, allocations: 0.5456 MB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005673/0.7639, allocations: 222.8 kB / 0.9553 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.7644, allocations: 189.9 kB / 0.9554 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006659/0.7651, allocations: 0.7729 MB / 0.9562 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005084/0.7656, allocations: 326.1 kB / 0.9565 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.7659, allocations: 198.7 kB / 0.9567 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004282/0.7663, allocations: 261.7 kB / 0.9569 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.7664, allocations: 24.94 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003994/0.7668, allocations: 193.3 kB / 0.9571 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.7669, allocations: 142.5 kB / 0.9573 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.7671, allocations: 193.5 kB / 0.9575 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.7676, allocations: 0.519 MB / 0.958 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.7676, allocations: 0 / 0.958 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.7676, allocations: 1.062 kB / 0.958 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.483e-06/0.7676, allocations: 0 / 0.958 GB, free: 2.535 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.001169/0.7688, allocations: 0.6837 MB / 0.9586 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.7688, allocations: 10.31 kB / 0.9587 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007127/0.7695, allocations: 107.4 kB / 0.9588 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.7699, allocations: 295.5 kB / 0.959 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.8e-05/0.77, allocations: 59.19 kB / 0.9591 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.7701, allocations: 34.61 kB / 0.9591 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.7709, allocations: 0.5063 MB / 0.9596 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.7709, allocations: 0 / 0.9596 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.292e-05/0.771, allocations: 16.38 kB / 0.9596 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.504e-05/0.771, allocations: 31.45 kB / 0.9597 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000692/0.7717, allocations: 385.1 kB / 0.96 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.7742, allocations: 2.203 MB / 0.9622 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007443/0.775, allocations: 272.8 kB / 0.9624 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000436/0.7754, allocations: 146.4 kB / 0.9626 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.7755, allocations: 2.531 kB / 0.9626 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/0.7755, allocations: 41.19 kB / 0.9626 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.843e-06/0.7755, allocations: 0 / 0.9626 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.00196/0.7775, allocations: 0.5666 MB / 0.9632 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.7776, allocations: 53.66 kB / 0.9632 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.7779, allocations: 232.8 kB / 0.9635 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.778, allocations: 34.78 kB / 0.9635 GB, free: 14 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.7782, allocations: 214.5 kB / 0.9637 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.7783, allocations: 59.61 kB / 0.9637 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.7785, allocations: 54.2 kB / 0.9638 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002027/0.7787, allocations: 331.8 kB / 0.9641 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.779, allocations: 99.8 kB / 0.9642 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.7793, allocations: 182.8 kB / 0.9644 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/0.7799, allocations: 274.4 kB / 0.9646 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.78, allocations: 1.062 kB / 0.9646 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001113/0.7811, allocations: 383.9 kB / 0.965 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.7811, allocations: 6.375 kB / 0.965 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.7812, allocations: 2.688 kB / 0.965 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006542/0.7818, allocations: 104.2 kB / 0.9651 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.7821, allocations: 49.5 kB / 0.9652 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003702/0.7858, allocations: 2.84 MB / 0.9679 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.7862, allocations: 31.7 kB / 0.968 GB, free: 9.848 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.7862, allocations: 8.625 kB / 0.968 GB, free: 9.848 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005667/0.7868, allocations: 225.4 kB / 0.9682 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003913/0.7872, allocations: 173.8 kB / 0.9684 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000676/0.7879, allocations: 281.7 kB / 0.9686 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.955e-06/0.7879, allocations: 1.062 kB / 0.9686 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008769/0.7888, allocations: 351.8 kB / 0.969 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.7888, allocations: 5.719 kB / 0.969 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.7888, allocations: 2.062 kB / 0.969 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003228/0.7892, allocations: 80 kB / 0.9691 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.7894, allocations: 56.5 kB / 0.9691 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.7915, allocations: 1.498 MB / 0.9706 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.7918, allocations: 28.33 kB / 0.9706 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.7919, allocations: 11.61 kB / 0.9706 GB, free: 7.625 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 (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.0002604/0.7921, allocations: 197.5 kB / 0.9708 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.7922, allocations: 23.14 kB / 0.9708 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.014e-05/0.7923, allocations: 39.22 kB / 0.9709 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.7923, allocations: 2.781 kB / 0.9709 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.7923, allocations: 4 kB / 0.9709 GB, free: 7.383 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.7923, allocations: 3.984 kB / 0.9709 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.794, allocations: 0.832 MB / 0.9717 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.794, allocations: 1.406 kB / 0.9717 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.7942, allocations: 30.98 kB / 0.9717 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/0.7946, allocations: 104.9 kB / 0.9718 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.7947, allocations: 9.25 kB / 0.9718 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.7977, allocations: 2.801 MB / 0.9746 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7977, allocations: 0 / 0.9746 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008666/0.7986, allocations: 420 kB / 0.975 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.7987, allocations: 109.8 kB / 0.9751 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.7988, allocations: 13.36 kB / 0.9751 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.799, allocations: 13.72 kB / 0.9751 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.728e-05/0.7991, allocations: 16.88 kB / 0.9751 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.7991, allocations: 7.969 kB / 0.9751 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001784/0.7993, allocations: 167.6 kB / 0.9753 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7993, allocations: 1.281 kB / 0.9753 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007781/0.8001, allocations: 172.5 kB / 0.9754 GB, free: 3.211 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 (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.0001369/0.8002, allocations: 97.81 kB / 0.9755 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002072/0.8023, allocations: 0.7586 MB / 0.9763 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.8023, allocations: 0 / 0.9763 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008146/0.8031, allocations: 368.2 kB / 0.9766 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.8036, allocations: 61.33 kB / 0.9767 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.805, allocations: 0.7209 MB / 0.9774 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.8056, allocations: 0.8141 MB / 0.9782 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002425/0.8058, allocations: 50.88 kB / 0.9782 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.8059, allocations: 18.5 kB / 0.9782 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of SimCode: time 6.62e-07/0.8059, allocations: 3.938 kB / 0.9782 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of Templates: time 0.009957/0.8159, allocations: 4.296 MB / 0.9824 GB, free: 14.21 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)