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.001081/0.001081, allocations: 107 kB / 16.27 MB, free: 5.93 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.001008/0.001008, allocations: 186.9 kB / 17.2 MB, free: 5.574 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.26/1.26, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7204/0.7204, allocations: 122.9 MB / 413.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.001351, allocations: 67.89 kB / 0.4912 GB, free: 7.301 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3352, allocations: 77.92 MB / 0.5673 GB, free: 32.78 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.0198/0.355, allocations: 22.6 MB / 0.5894 GB, free: 16.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.3778, allocations: 17.64 MB / 0.6066 GB, free: 2.449 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003888/0.3817, allocations: 111.4 kB / 0.6067 GB, free: 2.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01034/0.3921, allocations: 4.178 MB / 0.6108 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.4044, allocations: 3.511 MB / 0.6142 GB, free: 10.67 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003795/0.4082, allocations: 1.314 MB / 0.6155 GB, free: 9.363 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.008164/0.4164, allocations: 5.776 MB / 0.6211 GB, free: 3.57 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005317/0.4217, allocations: 3.604 MB / 0.6246 GB, free: 15.89 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004016/0.4258, allocations: 2.402 MB / 0.627 GB, free: 13.48 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004531/0.4303, allocations: 2.444 MB / 0.6294 GB, free: 11.03 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.4316, allocations: 372 kB / 0.6297 GB, free: 10.67 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002818/0.4344, allocations: 1.034 MB / 0.6307 GB, free: 9.633 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.436, allocations: 1.199 MB / 0.6319 GB, free: 8.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003403/0.4394, allocations: 1.994 MB / 0.6339 GB, free: 6.426 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006094/0.4455, allocations: 5.112 MB / 0.6388 GB, free: 1.297 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4456, allocations: 0 / 0.6388 GB, free: 1.297 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4456, allocations: 0 / 0.6388 GB, free: 1.297 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001621/0.4457, allocations: 4 kB / 0.6388 GB, free: 1.293 MB / 478.1 MB 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.01147/0.4572, allocations: 4.616 MB / 0.6434 GB, free: 12.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.4573, allocations: 16.62 kB / 0.6434 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006303/0.4579, allocations: 358.3 kB / 0.6437 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01591/0.4738, allocations: 3.269 MB / 0.6469 GB, free: 8.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/0.4781, allocations: 2.088 MB / 0.6489 GB, free: 6.754 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003817/0.4785, allocations: 466 kB / 0.6494 GB, free: 6.234 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005751/0.4791, allocations: 232 kB / 0.6496 GB, free: 6.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.4897, allocations: 4.815 MB / 0.6543 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.97e-05/0.4897, allocations: 0 / 0.6543 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003262/0.4901, allocations: 107.9 kB / 0.6544 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001972/0.4903, allocations: 180.7 kB / 0.6546 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.5043, allocations: 5.191 MB / 0.6597 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02294/0.5273, allocations: 14.48 MB / 0.6738 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01021/0.5375, allocations: 3.388 MB / 0.6771 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003947/0.5415, allocations: 1.471 MB / 0.6785 GB, free: 7.039 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001852/0.5417, allocations: 21.3 kB / 0.6786 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004515/0.5463, allocations: 1.792 MB / 0.6803 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=163): time 4.849e-06/0.5463, allocations: 0 / 0.6803 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=250): time 0.14/0.6863, allocations: 28.22 MB / 0.7079 GB, free: 8.711 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002466/0.6866, allocations: 0.4889 MB / 0.7084 GB, free: 8.109 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00344/0.69, allocations: 2.304 MB / 0.7106 GB, free: 5.793 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004751/0.6905, allocations: 77.7 kB / 0.7107 GB, free: 5.711 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.6918, allocations: 1.426 MB / 0.7121 GB, free: 4.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009725/0.6927, allocations: 0.8201 MB / 0.7129 GB, free: 3.438 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/0.6938, allocations: 424.4 kB / 0.7133 GB, free: 3.016 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.486e-05/0.6939, allocations: 305.1 kB / 0.7136 GB, free: 2.715 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005441/0.6994, allocations: 1.933 MB / 0.7155 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/0.7052, allocations: 2.227 MB / 0.7176 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/0.7163, allocations: 4.161 MB / 0.7217 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.7163, allocations: 0 / 0.7217 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01888/0.7352, allocations: 6.539 MB / 0.7281 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.7354, allocations: 148.5 kB / 0.7282 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.7354, allocations: 8 kB / 0.7282 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/0.7457, allocations: 2.95 MB / 0.7311 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/0.7487, allocations: 491.2 kB / 0.7316 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2528/1.002, allocations: 18.85 MB / 0.75 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004009/1.006, allocations: 323.2 kB / 0.7503 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/1.006, allocations: 89 kB / 0.7504 GB, free: 153.7 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.001427/1.007, allocations: 0.7057 MB / 0.7511 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000635/1.008, allocations: 332.5 kB / 0.7514 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006748/1.009, allocations: 383.5 kB / 0.7517 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.009, allocations: 25.75 kB / 0.7518 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.699e-05/1.009, allocations: 9.594 kB / 0.7518 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/1.009, allocations: 16.94 kB / 0.7518 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005056/1.014, allocations: 3.618 MB / 0.7553 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/1.014, allocations: 0.5625 kB / 0.7553 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.016, allocations: 416.6 kB / 0.7557 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009537/1.026, allocations: 2.893 MB / 0.7586 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004142/1.026, allocations: 54.02 kB / 0.7586 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03533/1.062, allocations: 18.63 MB / 0.7768 GB, free: 143.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.062, allocations: 0 / 0.7768 GB, free: 143.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/1.078, allocations: 6.176 MB / 0.7828 GB, free: 140.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/1.08, allocations: 0.7011 MB / 0.7835 GB, free: 140.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/1.08, allocations: 47.11 kB / 0.7836 GB, free: 140.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003008/1.083, allocations: 308.8 kB / 0.7839 GB, free: 140.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001095/1.084, allocations: 354.3 kB / 0.7842 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/1.084, allocations: 67.34 kB / 0.7843 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001912/1.086, allocations: 1.537 MB / 0.7858 GB, free: 139.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.086, allocations: 0 / 0.7858 GB, free: 139.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002588/1.089, allocations: 1.047 MB / 0.7868 GB, free: 138.8 MB / 0.5762 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.01601/1.105, allocations: 6.809 MB / 0.7934 GB, free: 132 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02315/1.128, allocations: 7.306 MB / 0.8006 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.128, allocations: 7.938 kB / 0.8006 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01571/1.144, allocations: 4.06 MB / 0.8045 GB, free: 120.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004195/1.148, allocations: 1.133 MB / 0.8056 GB, free: 119.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06099/1.209, allocations: 36.9 MB / 0.8417 GB, free: 80.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/1.211, allocations: 2.227 MB / 0.8439 GB, free: 78.25 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002198/1.213, allocations: 0.5071 MB / 0.8443 GB, free: 77.74 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.214, allocations: 1.343 MB / 0.8457 GB, free: 76.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.273e-06/1.214, allocations: 0 / 0.8457 GB, free: 76.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1348/1.349, allocations: 104.2 MB / 0.9474 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/14.85, allocations: 8.531 kB / 0.9474 GB, free: 5.238 MB / 0.6075 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)