Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 92.39 kB / 16.02 MB, free: 80 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.001558/0.001558, allocations: 178.8 kB / 16.92 MB, free: 6.629 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.408/1.408, allocations: 223.3 MB / 241 MB, free: 5.262 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.412/2.412, allocations: 390.9 MB / 0.667 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003572, allocations: 15.98 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6733/0.6737, allocations: 142.4 MB / 0.9557 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02236/0.6961, allocations: 21.7 MB / 0.9769 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02756/0.7237, allocations: 17.38 MB / 0.9939 GB, free: 8.305 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004589/0.7283, allocations: 99.44 kB / 0.994 GB, free: 8.207 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003212/0.7316, allocations: 0.597 MB / 0.9945 GB, free: 7.605 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.7462, allocations: 3.189 MB / 0.9977 GB, free: 4.414 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003924/0.7502, allocations: 1.185 MB / 0.9988 GB, free: 3.234 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009646/0.7598, allocations: 7.056 MB / 1.006 GB, free: 12.16 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004196/0.7641, allocations: 2.554 MB / 1.008 GB, free: 9.508 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004258/0.7684, allocations: 2.05 MB / 1.01 GB, free: 7.449 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004605/0.773, allocations: 2.291 MB / 1.012 GB, free: 5.148 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007579/0.7738, allocations: 176 kB / 1.013 GB, free: 4.977 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002543/0.7763, allocations: 1.053 MB / 1.014 GB, free: 3.922 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.7774, allocations: 0.9729 MB / 1.015 GB, free: 2.945 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002649/0.7801, allocations: 1.785 MB / 1.016 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.004585/0.7847, allocations: 3.962 MB / 1.02 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.7847, allocations: 0 / 1.02 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.846e-06/0.7847, allocations: 7.938 kB / 1.02 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001416/0.7849, allocations: 0 / 1.02 GB, free: 13.16 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.009147/0.794, allocations: 4.068 MB / 1.024 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.7941, allocations: 8.031 kB / 1.024 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/0.8109, allocations: 3.371 MB / 1.027 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004151/0.8151, allocations: 2.08 MB / 1.03 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003886/0.8155, allocations: 474.3 kB / 1.03 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006308/0.8161, allocations: 235.9 kB / 1.03 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01126/0.8274, allocations: 4.873 MB / 1.035 GB, free: 13.67 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.679e-05/0.8275, allocations: 3.984 kB / 1.035 GB, free: 13.67 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003354/0.8278, allocations: 108 kB / 1.035 GB, free: 13.56 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000203/0.828, allocations: 172.8 kB / 1.035 GB, free: 13.39 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01407/0.8421, allocations: 5.323 MB / 1.04 GB, free: 8.051 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02382/0.866, allocations: 14.58 MB / 1.055 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/0.8768, allocations: 3.692 MB / 1.058 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004244/0.8811, allocations: 1.592 MB / 1.06 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001688/0.8813, allocations: 29.28 kB / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004766/0.8861, allocations: 1.919 MB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 4.549e-06/0.8861, allocations: 0 / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.142/1.028, allocations: 34.12 MB / 1.095 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002555/1.028, allocations: 0.4889 MB / 1.096 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004246/1.033, allocations: 2.3 MB / 1.098 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0005223/1.033, allocations: 69.7 kB / 1.098 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001399/1.035, allocations: 1.442 MB / 1.099 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001114/1.036, allocations: 0.8163 MB / 1.1 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005182/1.036, allocations: 190.3 kB / 1.1 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001114/1.036, allocations: 309.1 kB / 1.101 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005902/1.042, allocations: 2.116 MB / 1.103 GB, free: 6.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006198/1.049, allocations: 2.419 MB / 1.105 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/1.06, allocations: 4.533 MB / 1.109 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/1.061, allocations: 0 / 1.109 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02092/1.081, allocations: 6.926 MB / 1.116 GB, free: 8.559 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/1.082, allocations: 148.5 kB / 1.116 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/1.082, allocations: 7.984 kB / 1.116 GB, free: 8.375 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/1.093, allocations: 2.926 MB / 1.119 GB, free: 5.438 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003288/1.096, allocations: 0.5657 MB / 1.12 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04131/1.138, allocations: 17.38 MB / 1.137 GB, free: 3.262 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004687/1.142, allocations: 411.6 kB / 1.137 GB, free: 2.859 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006195/1.143, allocations: 95.97 kB / 1.137 GB, free: 2.766 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.002282/1.145, allocations: 0.7039 MB / 1.138 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.146, allocations: 332 kB / 1.138 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/1.147, allocations: 392 kB / 1.139 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/1.147, allocations: 20 kB / 1.139 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-05/1.148, allocations: 12 kB / 1.139 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/1.148, allocations: 15.95 kB / 1.139 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006026/1.154, allocations: 3.628 MB / 1.142 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-05/1.154, allocations: 0 / 1.142 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002797/1.156, allocations: 0.5032 MB / 1.143 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01088/1.167, allocations: 2.868 MB / 1.145 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005585/1.168, allocations: 51.92 kB / 1.145 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04071/1.209, allocations: 17.15 MB / 1.162 GB, free: 8.734 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.209, allocations: 3.984 kB / 1.162 GB, free: 8.73 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02056/1.229, allocations: 6.552 MB / 1.169 GB, free: 2.141 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002326/1.232, allocations: 0.6961 MB / 1.169 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001067/1.233, allocations: 51.92 kB / 1.169 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004207/1.237, allocations: 415.5 kB / 1.17 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001425/1.238, allocations: 350.6 kB / 1.17 GB, free: 0.625 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003786/1.239, allocations: 71.97 kB / 1.17 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003048/1.242, allocations: 1.532 MB / 1.172 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.91e-07/1.242, allocations: 4 kB / 1.172 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00405/1.246, allocations: 1.047 MB / 1.173 GB, free: 13.97 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006156/1.247, allocations: 163.6 kB / 1.173 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0256/1.272, allocations: 6.833 MB / 1.179 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.272, allocations: 4.125 kB / 1.179 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.019/1.291, allocations: 4.217 MB / 1.184 GB, free: 2.625 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006594/1.298, allocations: 1.059 MB / 1.185 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/1.316, allocations: 8.331 MB / 1.193 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002741/1.319, allocations: 2.227 MB / 1.195 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/1.321, allocations: 195.4 kB / 1.195 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of SimCode: time 9.12e-07/1.321, allocations: 0 / 1.195 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of Templates: time 0.6055/1.926, allocations: 79.51 MB / 1.273 GB, free: 258.7 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)