Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 108 kB / 15.61 MB, free: 128 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.001888/0.001888, allocations: 197.8 kB / 16.53 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.807/1.807, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001564, allocations: 66.53 kB / 0.6716 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3164, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.027/0.3434, allocations: 22.44 MB / 0.8054 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02837/0.3719, allocations: 17.74 MB / 0.8227 GB, free: 5.074 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004885/0.3768, allocations: 115.4 kB / 0.8228 GB, free: 4.961 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.01195/0.3888, allocations: 4.155 MB / 0.8269 GB, free: 0.7969 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.4034, allocations: 3.521 MB / 0.8303 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005071/0.4085, allocations: 1.314 MB / 0.8316 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.01189/0.4204, allocations: 5.769 MB / 0.8372 GB, free: 6.168 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006641/0.4271, allocations: 3.6 MB / 0.8407 GB, free: 2.496 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005888/0.4331, allocations: 2.398 MB / 0.8431 GB, free: 92 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006068/0.4392, allocations: 2.452 MB / 0.8455 GB, free: 13.63 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.001497/0.4407, allocations: 372 kB / 0.8458 GB, free: 13.27 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003651/0.4444, allocations: 1.037 MB / 0.8468 GB, free: 12.23 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001672/0.4461, allocations: 1.192 MB / 0.848 GB, free: 11.03 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.00401/0.4501, allocations: 1.998 MB / 0.85 GB, free: 9.023 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.008232/0.4584, allocations: 5.12 MB / 0.855 GB, free: 3.887 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.4584, allocations: 0 / 0.855 GB, free: 3.887 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.934e-06/0.4584, allocations: 0 / 0.855 GB, free: 3.887 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001607/0.4586, allocations: 0 / 0.855 GB, free: 3.887 MB / 0.67 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.01263/0.4713, allocations: 4.616 MB / 0.8595 GB, free: 15.16 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.4713, allocations: 8.031 kB / 0.8595 GB, free: 15.15 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005577/0.4719, allocations: 362.3 kB / 0.8598 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/0.4879, allocations: 3.261 MB / 0.863 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005177/0.4932, allocations: 2.091 MB / 0.865 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004202/0.4936, allocations: 474 kB / 0.8655 GB, free: 8.828 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007996/0.4944, allocations: 228 kB / 0.8657 GB, free: 8.605 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.5065, allocations: 4.81 MB / 0.8704 GB, free: 3.652 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.723e-05/0.5066, allocations: 3.938 kB / 0.8704 GB, free: 3.648 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.5069, allocations: 108 kB / 0.8705 GB, free: 3.543 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002613/0.5072, allocations: 172.8 kB / 0.8707 GB, free: 3.371 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/0.5222, allocations: 5.187 MB / 0.8758 GB, free: 14.17 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02768/0.55, allocations: 14.49 MB / 0.8899 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009902/0.5599, allocations: 3.402 MB / 0.8932 GB, free: 11.1 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00371/0.5637, allocations: 1.467 MB / 0.8947 GB, free: 9.633 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/0.5638, allocations: 25.28 kB / 0.8947 GB, free: 9.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004295/0.5681, allocations: 1.787 MB / 0.8964 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=163): time 4.238e-06/0.5681, allocations: 3.938 kB / 0.8964 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=250): time 0.5403/1.108, allocations: 28.21 MB / 0.924 GB, free: 128.9 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002608/1.109, allocations: 0.4897 MB / 0.9245 GB, free: 128.3 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00401/1.113, allocations: 2.299 MB / 0.9267 GB, free: 127.5 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0005109/1.113, allocations: 76.83 kB / 0.9268 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001189/1.114, allocations: 1.435 MB / 0.9282 GB, free: 126.4 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008952/1.115, allocations: 0.8202 MB / 0.929 GB, free: 125.7 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008893/1.116, allocations: 420.2 kB / 0.9294 GB, free: 125.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 5.193e-05/1.116, allocations: 307.7 kB / 0.9297 GB, free: 125.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005424/1.122, allocations: 1.929 MB / 0.9316 GB, free: 124.7 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006152/1.128, allocations: 2.232 MB / 0.9337 GB, free: 123.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/1.141, allocations: 4.159 MB / 0.9378 GB, free: 122.1 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/1.141, allocations: 5.938 kB / 0.9378 GB, free: 122.1 MB / 0.7325 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02075/1.161, allocations: 6.538 MB / 0.9442 GB, free: 119.9 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.162, allocations: 146.6 kB / 0.9443 GB, free: 119.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/1.162, allocations: 10.19 kB / 0.9443 GB, free: 119.7 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01016/1.172, allocations: 2.947 MB / 0.9472 GB, free: 119.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/1.175, allocations: 487.3 kB / 0.9477 GB, free: 119.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03607/1.211, allocations: 18.85 MB / 0.9661 GB, free: 108.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005234/1.216, allocations: 326 kB / 0.9664 GB, free: 107.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007269/1.217, allocations: 88.31 kB / 0.9665 GB, free: 107.9 MB / 0.7325 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.002375/1.219, allocations: 0.7041 MB / 0.9672 GB, free: 107.4 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000805/1.22, allocations: 334.3 kB / 0.9675 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007452/1.221, allocations: 386 kB / 0.9679 GB, free: 107 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.919e-05/1.221, allocations: 23.09 kB / 0.9679 GB, free: 107 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001147/1.221, allocations: 12.84 kB / 0.9679 GB, free: 107 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/1.221, allocations: 11.95 kB / 0.9679 GB, free: 107 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004848/1.226, allocations: 3.635 MB / 0.9714 GB, free: 104.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.226, allocations: 0 / 0.9714 GB, free: 104.6 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.228, allocations: 415.3 kB / 0.9718 GB, free: 104.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008846/1.237, allocations: 2.903 MB / 0.9747 GB, free: 103.1 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003746/1.238, allocations: 43.8 kB / 0.9747 GB, free: 103.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03289/1.271, allocations: 18.63 MB / 0.9929 GB, free: 84.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.271, allocations: 0 / 0.9929 GB, free: 84.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01659/1.287, allocations: 6.169 MB / 0.9989 GB, free: 78.44 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.289, allocations: 0.7012 MB / 0.9996 GB, free: 77.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006214/1.29, allocations: 54.09 kB / 0.9997 GB, free: 77.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003282/1.293, allocations: 307.6 kB / 1 GB, free: 77.37 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001129/1.294, allocations: 354.7 kB / 1 GB, free: 77.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/1.295, allocations: 67.97 kB / 1 GB, free: 76.95 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001769/1.296, allocations: 1.54 MB / 1.002 GB, free: 75.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/1.296, allocations: 0 / 1.002 GB, free: 75.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002956/1.299, allocations: 1.047 MB / 1.003 GB, free: 74.37 MB / 0.7325 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.01602/1.315, allocations: 6.801 MB / 1.01 GB, free: 67.53 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0243/1.34, allocations: 7.304 MB / 1.017 GB, free: 60.14 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/1.34, allocations: 4 kB / 1.017 GB, free: 60.13 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01693/1.357, allocations: 4.052 MB / 1.021 GB, free: 56.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004539/1.361, allocations: 1.135 MB / 1.022 GB, free: 55 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06569/1.427, allocations: 36.88 MB / 1.058 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/1.429, allocations: 2.227 MB / 1.06 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002257/1.431, allocations: 0.5175 MB / 1.06 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.432, allocations: 1.339 MB / 1.062 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of SimCode: time 7.61e-07/1.432, allocations: 3.938 kB / 1.062 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/1.593, allocations: 104.2 MB / 1.164 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/16.49, allocations: 8.953 kB / 1.164 GB, free: 4.809 MB / 0.8262 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)