Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_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.001818/0.001818, allocations: 108 kB / 15.6 MB, free: 132 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.001907/0.001907, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002525/0.002525, allocations: 298.5 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002697, allocations: 98.8 kB / 0.6065 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1708, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02742/0.1983, allocations: 22.63 MB / 0.7157 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02711/0.2254, allocations: 17.63 MB / 0.7329 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003711/0.2292, allocations: 115.4 kB / 0.733 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.2405, allocations: 4.169 MB / 0.7371 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01191/0.2525, allocations: 3.511 MB / 0.7405 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.00431/0.2568, allocations: 1.321 MB / 0.7418 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009299/0.2661, allocations: 5.781 MB / 0.7475 GB, free: 12.9 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005503/0.2716, allocations: 3.596 MB / 0.751 GB, free: 9.23 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004078/0.2758, allocations: 2.398 MB / 0.7533 GB, free: 6.824 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004319/0.2801, allocations: 2.448 MB / 0.7557 GB, free: 4.367 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0009456/0.2811, allocations: 372 kB / 0.7561 GB, free: 4.004 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002439/0.2835, allocations: 1.034 MB / 0.7571 GB, free: 2.969 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001209/0.2847, allocations: 1.196 MB / 0.7582 GB, free: 1.77 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.2902/0.5749, allocations: 1.996 MB / 0.7602 GB, free: 17.08 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.007159/0.5821, allocations: 5.113 MB / 0.7652 GB, free: 16.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5821, allocations: 0 / 0.7652 GB, free: 16.93 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5821, allocations: 2.625 kB / 0.7652 GB, free: 16.93 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000122/0.5823, allocations: 0.9062 kB / 0.7652 GB, free: 16.93 MB / 0.545 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.01073/0.593, allocations: 4.616 MB / 0.7697 GB, free: 14.99 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.5931, allocations: 9.594 kB / 0.7697 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005468/0.5936, allocations: 364.8 kB / 0.77 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01671/0.6103, allocations: 3.26 MB / 0.7732 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00524/0.6156, allocations: 2.091 MB / 0.7753 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004242/0.6161, allocations: 462.1 kB / 0.7757 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/0.6173, allocations: 239.2 kB / 0.7759 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/0.6288, allocations: 4.812 MB / 0.7806 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-05/0.6289, allocations: 0 / 0.7806 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003646/0.6293, allocations: 104 kB / 0.7807 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000188/0.6295, allocations: 170.6 kB / 0.7809 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.6442, allocations: 5.199 MB / 0.786 GB, free: 13.09 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02562/0.6699, allocations: 14.49 MB / 0.8001 GB, free: 21.33 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01287/0.6828, allocations: 3.392 MB / 0.8034 GB, free: 19.63 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004826/0.6876, allocations: 1.469 MB / 0.8049 GB, free: 18.89 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001679/0.6878, allocations: 24.33 kB / 0.8049 GB, free: 18.89 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005603/0.6934, allocations: 1.795 MB / 0.8066 GB, free: 17.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 7.995e-06/0.6935, allocations: 0 / 0.8066 GB, free: 17.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1424/0.8359, allocations: 28.22 MB / 0.8342 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003071/0.8362, allocations: 0.4889 MB / 0.8347 GB, free: 12 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003831/0.84, allocations: 2.3 MB / 0.8369 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.00044/0.8405, allocations: 77.7 kB / 0.837 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.842, allocations: 1.433 MB / 0.8384 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001076/0.8431, allocations: 0.8215 MB / 0.8392 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001095/0.8442, allocations: 420 kB / 0.8396 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.8443, allocations: 305.1 kB / 0.8399 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005715/0.85, allocations: 1.921 MB / 0.8418 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006072/0.8561, allocations: 2.249 MB / 0.844 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.8677, allocations: 4.155 MB / 0.848 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.8677, allocations: 4 kB / 0.848 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02039/0.8881, allocations: 6.541 MB / 0.8544 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.8883, allocations: 148.5 kB / 0.8546 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.8883, allocations: 4 kB / 0.8546 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/0.8991, allocations: 2.951 MB / 0.8574 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.9022, allocations: 493.4 kB / 0.8579 GB, free: 8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04387/0.9461, allocations: 18.85 MB / 0.8763 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/0.9508, allocations: 323.6 kB / 0.8766 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006672/0.9515, allocations: 83.98 kB / 0.8767 GB, free: 4.586 MB / 0.6075 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.002227/0.9537, allocations: 0.709 MB / 0.8774 GB, free: 3.883 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009521/0.9547, allocations: 328.1 kB / 0.8777 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.9557, allocations: 384.1 kB / 0.8781 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/0.9558, allocations: 26.62 kB / 0.8781 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-05/0.9558, allocations: 8 kB / 0.8781 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.66e-05/0.9558, allocations: 13.03 kB / 0.8781 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006326/0.9622, allocations: 3.631 MB / 0.8817 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.9622, allocations: 0 / 0.8817 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/0.9649, allocations: 413.8 kB / 0.8821 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01048/0.9754, allocations: 2.894 MB / 0.8849 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005029/0.9759, allocations: 53.09 kB / 0.8849 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04362/1.02, allocations: 18.63 MB / 0.9031 GB, free: 9.273 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.02, allocations: 0 / 0.9031 GB, free: 9.273 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02061/1.04, allocations: 6.178 MB / 0.9092 GB, free: 3.133 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/1.043, allocations: 0.7 MB / 0.9099 GB, free: 2.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001415/1.044, allocations: 44 kB / 0.9099 GB, free: 2.367 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004214/1.048, allocations: 318.1 kB / 0.9102 GB, free: 2.059 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0014/1.05, allocations: 359.6 kB / 0.9105 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003494/1.05, allocations: 71.44 kB / 0.9106 GB, free: 1.645 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.003091/1.053, allocations: 1.532 MB / 0.9121 GB, free: 116 kB / 0.6387 GB Notification: Performance of sort global known variables: time 2.8e-07/1.053, allocations: 0 / 0.9121 GB, free: 116 kB / 0.6387 GB Notification: Performance of remove unused functions: time 0.003975/1.057, allocations: 1.047 MB / 0.9131 GB, free: 15.06 MB / 0.6544 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.02065/1.078, allocations: 6.803 MB / 0.9198 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.02853/1.106, allocations: 7.293 MB / 0.9269 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.107, allocations: 8.25 kB / 0.9269 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.01941/1.126, allocations: 4.062 MB / 0.9309 GB, free: 12.89 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006922/1.133, allocations: 1.142 MB / 0.932 GB, free: 11.82 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09327/1.226, allocations: 36.89 MB / 0.968 GB, free: 5.105 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003068/1.229, allocations: 2.227 MB / 0.9702 GB, free: 2.848 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.00313/1.232, allocations: 0.5099 MB / 0.9707 GB, free: 2.332 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002475/1.235, allocations: 1.343 MB / 0.972 GB, free: 0.9883 MB / 0.7012 GB Notification: Performance of SimCode: time 2.014e-06/1.235, allocations: 0 / 0.972 GB, free: 0.9883 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4936/1.729, allocations: 104.3 MB / 1.074 GB, free: 286.3 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/16.43, allocations: 6.891 kB / 1.074 GB, free: 286.3 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)