Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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: "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="IBPSA_latest_IBPSA_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.001125/0.001125, allocations: 105.3 kB / 16.4 MB, free: 6.461 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.001195/0.001195, allocations: 196 kB / 17.34 MB, free: 5.715 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7691/0.7691, allocations: 122.9 MB / 414.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 65.8 kB / 0.568 GB, free: 28.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1411, allocations: 77.92 MB / 0.6441 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02417/0.1654, allocations: 22.61 MB / 0.6662 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02553/0.1909, allocations: 17.64 MB / 0.6834 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003054/0.194, allocations: 115.4 kB / 0.6835 GB, free: 1 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.2043, allocations: 4.172 MB / 0.6876 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.2155, allocations: 3.572 MB / 0.6911 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.2192, allocations: 1.321 MB / 0.6924 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008055/0.2272, allocations: 5.793 MB / 0.698 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005495/0.2328, allocations: 3.596 MB / 0.7015 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004113/0.2369, allocations: 2.484 MB / 0.7039 GB, free: 11.94 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004497/0.2414, allocations: 2.444 MB / 0.7063 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001269/0.2427, allocations: 376 kB / 0.7067 GB, free: 9.121 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002926/0.2456, allocations: 1.03 MB / 0.7077 GB, free: 8.09 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002355/0.248, allocations: 1.199 MB / 0.7089 GB, free: 6.887 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003984/0.252, allocations: 1.994 MB / 0.7108 GB, free: 4.883 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.008083/0.2601, allocations: 5.199 MB / 0.7159 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.2602, allocations: 4 kB / 0.7159 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.515e-06/0.2602, allocations: 0 / 0.7159 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002548/0.2604, allocations: 0 / 0.7159 GB, free: 15.66 MB / 0.5606 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.01301/0.2735, allocations: 4.73 MB / 0.7205 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.2735, allocations: 12.62 kB / 0.7205 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009621/0.2745, allocations: 358.3 kB / 0.7209 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/0.2913, allocations: 3.283 MB / 0.7241 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006119/0.2974, allocations: 2.25 MB / 0.7263 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004405/0.2979, allocations: 478 kB / 0.7267 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009979/0.2989, allocations: 224 kB / 0.7269 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.3116, allocations: 4.81 MB / 0.7316 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.581e-05/0.3117, allocations: 4 kB / 0.7316 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006197/0.3123, allocations: 108 kB / 0.7317 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/0.3126, allocations: 168.8 kB / 0.7319 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.3266, allocations: 5.198 MB / 0.737 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3592/0.6858, allocations: 14.42 MB / 0.7511 GB, free: 86.62 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.697, allocations: 3.389 MB / 0.7544 GB, free: 85.91 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004684/0.7018, allocations: 1.468 MB / 0.7558 GB, free: 85.46 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.7019, allocations: 20.98 kB / 0.7558 GB, free: 85.46 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004805/0.7067, allocations: 1.793 MB / 0.7576 GB, free: 84.85 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=163): time 4.429e-06/0.7068, allocations: 1.094 kB / 0.7576 GB, free: 84.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=250): time 0.1243/0.831, allocations: 28.29 MB / 0.7852 GB, free: 71.78 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.8313, allocations: 0.5006 MB / 0.7857 GB, free: 71.16 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/0.834, allocations: 2.289 MB / 0.7879 GB, free: 68.87 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000468/0.8345, allocations: 79.02 kB / 0.788 GB, free: 68.79 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008868/0.8353, allocations: 1.452 MB / 0.7894 GB, free: 67.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.8361, allocations: 0.8669 MB / 0.7903 GB, free: 66.69 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007317/0.8368, allocations: 417 kB / 0.7907 GB, free: 66.28 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.8369, allocations: 301.1 kB / 0.791 GB, free: 65.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004654/0.8415, allocations: 1.929 MB / 0.7928 GB, free: 64.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004824/0.8464, allocations: 2.236 MB / 0.795 GB, free: 61.73 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0093/0.8557, allocations: 4.161 MB / 0.7991 GB, free: 57.43 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.8557, allocations: 5.531 kB / 0.7991 GB, free: 57.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01683/0.8726, allocations: 6.555 MB / 0.8055 GB, free: 50.79 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.8727, allocations: 148.5 kB / 0.8056 GB, free: 50.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.8727, allocations: 4 kB / 0.8056 GB, free: 50.61 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009037/0.8817, allocations: 2.93 MB / 0.8085 GB, free: 47.67 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.8847, allocations: 487.2 kB / 0.809 GB, free: 47.19 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03407/0.9188, allocations: 18.87 MB / 0.8274 GB, free: 28.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/0.9229, allocations: 315.6 kB / 0.8277 GB, free: 27.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000338/0.9232, allocations: 93.17 kB / 0.8278 GB, free: 27.73 MB / 0.5762 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.001496/0.9247, allocations: 0.703 MB / 0.8285 GB, free: 27.02 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006942/0.9254, allocations: 349.8 kB / 0.8288 GB, free: 26.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006031/0.9261, allocations: 380.1 kB / 0.8292 GB, free: 26.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.9261, allocations: 27.38 kB / 0.8292 GB, free: 26.28 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.191e-05/0.9261, allocations: 16 kB / 0.8292 GB, free: 26.26 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.9262, allocations: 15.89 kB / 0.8292 GB, free: 26.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.93, allocations: 3.63 MB / 0.8328 GB, free: 22.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.93, allocations: 0 / 0.8328 GB, free: 22.61 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002385/0.9324, allocations: 411.4 kB / 0.8332 GB, free: 22.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008816/0.9413, allocations: 2.868 MB / 0.836 GB, free: 19.34 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003897/0.9417, allocations: 51.97 kB / 0.836 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03319/0.9749, allocations: 18.64 MB / 0.8542 GB, free: 376 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9749, allocations: 0 / 0.8542 GB, free: 376 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/0.993, allocations: 6.194 MB / 0.8603 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/0.9951, allocations: 0.7134 MB / 0.861 GB, free: 9.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005728/0.9957, allocations: 53.25 kB / 0.861 GB, free: 9.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003194/0.9989, allocations: 315.6 kB / 0.8613 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/1, allocations: 354.7 kB / 0.8617 GB, free: 8.703 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/1, allocations: 75.97 kB / 0.8617 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002047/1.002, allocations: 1.528 MB / 0.8632 GB, free: 7.102 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.7e-07/1.002, allocations: 4 kB / 0.8632 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002956/1.005, allocations: 1.043 MB / 0.8642 GB, free: 6.055 MB / 0.5919 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.01825/1.024, allocations: 6.823 MB / 0.8709 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.024/1.048, allocations: 6.474 MB / 0.8772 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.048, allocations: 0 / 0.8772 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01783/1.065, allocations: 4.07 MB / 0.8812 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005577/1.071, allocations: 1.149 MB / 0.8823 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07442/1.146, allocations: 31.96 MB / 0.9135 GB, free: 3.043 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001853/1.147, allocations: 2.227 MB / 0.9157 GB, free: 0.7852 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002146/1.15, allocations: 0.5099 MB / 0.9162 GB, free: 276 kB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.151, allocations: 1.342 MB / 0.9175 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of SimCode: time 7.02e-07/1.151, allocations: 0 / 0.9175 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1618/1.313, allocations: 102.7 MB / 1.018 GB, free: 9.309 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/20.11, allocations: 11.56 kB / 1.018 GB, free: 9.301 MB / 0.7481 GB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)