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.004798/0.004798, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001103/0.001103, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00219/0.00219, allocations: 290.3 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9615/0.9615, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 87.86 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4293/0.432, allocations: 86.98 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02508/0.4571, allocations: 22.64 MB / 0.788 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02393/0.4811, allocations: 17.62 MB / 0.8053 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00291/0.4841, allocations: 115.4 kB / 0.8054 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01056/0.4947, allocations: 4.171 MB / 0.8094 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.5057, allocations: 3.574 MB / 0.8129 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003988/0.5097, allocations: 1.324 MB / 0.8142 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008383/0.5181, allocations: 5.796 MB / 0.8199 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005451/0.5236, allocations: 3.584 MB / 0.8234 GB, free: 8.816 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004482/0.5281, allocations: 2.48 MB / 0.8258 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004578/0.5327, allocations: 2.448 MB / 0.8282 GB, free: 3.871 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001252/0.5339, allocations: 371.9 kB / 0.8285 GB, free: 3.508 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00287/0.5368, allocations: 1.034 MB / 0.8296 GB, free: 2.473 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001754/0.5386, allocations: 1.199 MB / 0.8307 GB, free: 1.27 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003855/0.5425, allocations: 1.994 MB / 0.8327 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.008872/0.5514, allocations: 5.204 MB / 0.8378 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.5514, allocations: 0 / 0.8378 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5514, allocations: 0 / 0.8378 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.000244/0.5517, allocations: 0 / 0.8378 GB, free: 10.04 MB / 0.6075 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.01271/0.5644, allocations: 4.726 MB / 0.8424 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.5644, allocations: 8.031 kB / 0.8424 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009292/0.5654, allocations: 370.3 kB / 0.8427 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.5823, allocations: 3.283 MB / 0.8459 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005294/0.5876, allocations: 2.254 MB / 0.8481 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.588, allocations: 469.9 kB / 0.8486 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009153/0.589, allocations: 232 kB / 0.8488 GB, free: 14.46 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.6011, allocations: 4.814 MB / 0.8535 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.745e-05/0.6012, allocations: 0 / 0.8535 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006036/0.6018, allocations: 104 kB / 0.8536 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002122/0.6021, allocations: 176.8 kB / 0.8538 GB, free: 9.223 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/0.6167, allocations: 5.191 MB / 0.8588 GB, free: 4.016 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02333/0.64, allocations: 14.42 MB / 0.8729 GB, free: 4.43 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01562/0.6557, allocations: 3.385 MB / 0.8762 GB, free: 1.039 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006592/0.6623, allocations: 1.471 MB / 0.8777 GB, free: 15.56 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/0.6625, allocations: 21.22 kB / 0.8777 GB, free: 15.54 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007045/0.6696, allocations: 1.792 MB / 0.8794 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 5.981e-06/0.6696, allocations: 0 / 0.8794 GB, free: 13.69 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1382/0.8078, allocations: 28.3 MB / 0.9071 GB, free: 1.164 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002421/0.8081, allocations: 0.4889 MB / 0.9076 GB, free: 0.5664 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.8118, allocations: 2.3 MB / 0.9098 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003334/0.8121, allocations: 77.7 kB / 0.9099 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.8134, allocations: 1.452 MB / 0.9113 GB, free: 12.71 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000878/0.8142, allocations: 0.8675 MB / 0.9121 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009771/0.8152, allocations: 416.5 kB / 0.9125 GB, free: 11.42 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.8153, allocations: 301.1 kB / 0.9128 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005382/0.8207, allocations: 1.929 MB / 0.9147 GB, free: 9.188 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005704/0.8264, allocations: 2.235 MB / 0.9169 GB, free: 6.867 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/0.8372, allocations: 4.161 MB / 0.921 GB, free: 2.57 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.8373, allocations: 4 kB / 0.921 GB, free: 2.566 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01889/0.8562, allocations: 6.557 MB / 0.9274 GB, free: 11.92 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.8563, allocations: 148.5 kB / 0.9275 GB, free: 11.74 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.8563, allocations: 4 kB / 0.9275 GB, free: 11.74 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/0.8665, allocations: 2.922 MB / 0.9304 GB, free: 8.816 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002877/0.8694, allocations: 495.2 kB / 0.9308 GB, free: 8.332 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04011/0.9096, allocations: 18.86 MB / 0.9492 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004103/0.9137, allocations: 319.6 kB / 0.9496 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004473/0.9142, allocations: 87.98 kB / 0.9496 GB, free: 4.824 MB / 0.7169 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.001663/0.9158, allocations: 0.7104 MB / 0.9503 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008626/0.9167, allocations: 341.9 kB / 0.9507 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008451/0.9176, allocations: 380.1 kB / 0.951 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.9176, allocations: 28 kB / 0.951 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-05/0.9177, allocations: 12 kB / 0.9511 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-05/0.9177, allocations: 11.95 kB / 0.9511 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.9227, allocations: 3.624 MB / 0.9546 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.197e-05/0.9228, allocations: 4 kB / 0.9546 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/0.9253, allocations: 419.3 kB / 0.955 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009758/0.9351, allocations: 2.868 MB / 0.9578 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003204/0.9354, allocations: 51.97 kB / 0.9579 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3596/1.295, allocations: 18.64 MB / 0.9761 GB, free: 185.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/1.295, allocations: 0 / 0.9761 GB, free: 185.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01754/1.313, allocations: 6.2 MB / 0.9821 GB, free: 183.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/1.314, allocations: 0.7101 MB / 0.9828 GB, free: 183.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007898/1.315, allocations: 51.72 kB / 0.9829 GB, free: 183.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0033/1.318, allocations: 308.7 kB / 0.9832 GB, free: 183.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001306/1.32, allocations: 355.9 kB / 0.9835 GB, free: 183.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/1.32, allocations: 69.95 kB / 0.9836 GB, free: 183.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00244/1.322, allocations: 1.531 MB / 0.9851 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/1.322, allocations: 0 / 0.9851 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002711/1.325, allocations: 1.048 MB / 0.9861 GB, free: 182.4 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.01626/1.341, allocations: 6.819 MB / 0.9927 GB, free: 180 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02126/1.363, allocations: 6.483 MB / 0.9991 GB, free: 177.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.363, allocations: 0 / 0.9991 GB, free: 177.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01604/1.379, allocations: 4.074 MB / 1.003 GB, free: 174 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004231/1.383, allocations: 1.14 MB / 1.004 GB, free: 173 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05962/1.443, allocations: 31.97 MB / 1.035 GB, free: 140.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/1.444, allocations: 2.231 MB / 1.038 GB, free: 138.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001983/1.446, allocations: 0.5114 MB / 1.038 GB, free: 137.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/1.448, allocations: 1.335 MB / 1.039 GB, free: 136.6 MB / 0.7325 GB Notification: Performance of SimCode: time 1.513e-06/1.448, allocations: 0 / 1.039 GB, free: 136.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1329/1.581, allocations: 102.8 MB / 1.14 GB, free: 34.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/19.65, allocations: 0 / 1.14 GB, free: 34.98 MB / 0.7325 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)