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.01003/0.01003, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002001/0.002001, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.256/2.256, allocations: 390.2 MB / 0.6648 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 67.89 kB / 0.9508 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.136/1.138, allocations: 140.4 MB / 1.088 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.007421/1.145, allocations: 4.098 MB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003376/1.149, allocations: 1.583 MB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/1.149, allocations: 11.56 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001802/1.151, allocations: 0.5876 MB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006844/1.152, allocations: 234.5 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007226/1.152, allocations: 215.7 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007922/1.153, allocations: 0.5443 MB / 1.095 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009768/1.154, allocations: 480.8 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003785/1.154, allocations: 231.2 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004932/1.155, allocations: 250.2 kB / 1.096 GB, free: 496 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.746e-05/1.155, allocations: 39.19 kB / 1.096 GB, free: 492 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004156/1.155, allocations: 162.5 kB / 1.096 GB, free: 444 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002121/1.156, allocations: 148.5 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002548/1.156, allocations: 199.9 kB / 1.096 GB, free: 264 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008144/1.157, allocations: 0.5217 MB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/1.157, allocations: 1.094 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.763e-06/1.157, allocations: 0 / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.441e-05/1.157, allocations: 0 / 1.097 GB, free: 76 kB / 0.8575 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.001468/1.158, allocations: 0.6812 MB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/1.158, allocations: 10.25 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008598/1.159, allocations: 105 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/1.16, allocations: 306.9 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.084e-05/1.16, allocations: 55.34 kB / 1.098 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/1.16, allocations: 38.61 kB / 1.098 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/1.161, allocations: 0.4993 MB / 1.099 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/1.161, allocations: 0 / 1.099 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/1.161, allocations: 21.11 kB / 1.099 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.269e-05/1.161, allocations: 35.95 kB / 1.099 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008032/1.162, allocations: 378.6 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/1.165, allocations: 2.197 MB / 1.101 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/1.165, allocations: 263.6 kB / 1.101 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003948/1.166, allocations: 155.8 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/1.166, allocations: 3.297 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/1.166, allocations: 36 kB / 1.102 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 2.014e-06/1.166, allocations: 0.75 kB / 1.102 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001628/1.168, allocations: 0.5704 MB / 1.102 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/1.168, allocations: 61.77 kB / 1.102 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/1.168, allocations: 223 kB / 1.102 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/1.168, allocations: 27.48 kB / 1.102 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/1.168, allocations: 211 kB / 1.103 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.68e-05/1.168, allocations: 77.02 kB / 1.103 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/1.168, allocations: 51.17 kB / 1.103 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001307/1.168, allocations: 333.6 kB / 1.103 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/1.169, allocations: 97.77 kB / 1.103 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/1.169, allocations: 184.1 kB / 1.103 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/1.17, allocations: 277.1 kB / 1.104 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.17, allocations: 5.312 kB / 1.104 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009052/1.171, allocations: 375.8 kB / 1.104 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/1.171, allocations: 7.359 kB / 1.104 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/1.171, allocations: 2.688 kB / 1.104 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005216/1.171, allocations: 107.2 kB / 1.104 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/1.171, allocations: 51.86 kB / 1.104 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003655/1.175, allocations: 3.048 MB / 1.107 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/1.175, allocations: 33.92 kB / 1.107 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/1.175, allocations: 17.83 kB / 1.107 GB, free: 8.105 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004275/1.176, allocations: 221 kB / 1.107 GB, free: 7.977 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003412/1.176, allocations: 182.6 kB / 1.108 GB, free: 7.836 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005345/1.177, allocations: 267.3 kB / 1.108 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.689e-06/1.177, allocations: 1.062 kB / 1.108 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008945/1.178, allocations: 346.3 kB / 1.108 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.178, allocations: 12.5 kB / 1.108 GB, free: 7.527 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/1.178, allocations: 3.219 kB / 1.108 GB, free: 7.527 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000338/1.178, allocations: 82.95 kB / 1.108 GB, free: 7.504 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/1.178, allocations: 52.12 kB / 1.108 GB, free: 7.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/1.181, allocations: 1.611 MB / 1.11 GB, free: 6.031 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/1.181, allocations: 27.61 kB / 1.11 GB, free: 6.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/1.181, allocations: 16.8 kB / 1.11 GB, free: 6.012 MB / 0.8731 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.0001658/1.181, allocations: 201.4 kB / 1.11 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.484e-05/1.181, allocations: 28.39 kB / 1.11 GB, free: 5.797 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.048e-05/1.181, allocations: 30.17 kB / 1.11 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/1.181, allocations: 1.156 kB / 1.11 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.181, allocations: 1.438 kB / 1.11 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/1.181, allocations: 9.094 kB / 1.11 GB, free: 5.77 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/1.183, allocations: 0.8266 MB / 1.111 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/1.183, allocations: 4.875 kB / 1.111 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/1.183, allocations: 36.44 kB / 1.111 GB, free: 5.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/1.184, allocations: 100.7 kB / 1.111 GB, free: 5.168 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/1.184, allocations: 5.828 kB / 1.111 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003297/1.187, allocations: 3.029 MB / 1.114 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/1.187, allocations: 1.469 kB / 1.114 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008578/1.188, allocations: 411.2 kB / 1.114 GB, free: 2.02 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/1.188, allocations: 124.2 kB / 1.115 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/1.188, allocations: 2.359 kB / 1.115 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/1.188, allocations: 12.92 kB / 1.115 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.188, allocations: 18.67 kB / 1.115 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/1.188, allocations: 5.5 kB / 1.115 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000216/1.189, allocations: 161.9 kB / 1.115 GB, free: 1.789 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.189, allocations: 4 kB / 1.115 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008016/1.189, allocations: 169 kB / 1.115 GB, free: 1.742 MB / 0.8731 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.0001355/1.189, allocations: 107 kB / 1.115 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00222/1.192, allocations: 0.757 MB / 1.116 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/1.192, allocations: 4 kB / 1.116 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008816/1.193, allocations: 370.7 kB / 1.116 GB, free: 0.9336 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/1.193, allocations: 60.47 kB / 1.116 GB, free: 0.9062 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/1.195, allocations: 0.5804 MB / 1.117 GB, free: 0.5586 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000668/1.195, allocations: 0.8103 MB / 1.118 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002789/1.196, allocations: 52.81 kB / 1.118 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.548e-05/1.196, allocations: 18.5 kB / 1.118 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of SimCode: time 3.1e-07/1.196, allocations: 0 / 1.118 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of Templates: time 0.01334/1.209, allocations: 4.724 MB / 1.122 GB, free: 15.51 MB / 0.8887 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)