Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.007787/0.007787, allocations: 98.8 kB / 15.73 MB, free: 6.039 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.00201/0.00201, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00251/0.00251, allocations: 282.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.14/1.14, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002724, allocations: 97.3 kB / 0.681 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1887, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.005358/0.1941, allocations: 3.058 MB / 0.7689 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1965, allocations: 1.336 MB / 0.7702 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.1967, allocations: 11.94 kB / 0.7702 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.1979, allocations: 326.7 kB / 0.7705 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004238/0.1983, allocations: 143.3 kB / 0.7706 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/0.1988, allocations: 139.6 kB / 0.7708 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004829/0.1992, allocations: 314.6 kB / 0.7711 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004861/0.1997, allocations: 236.2 kB / 0.7713 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.2, allocations: 127.5 kB / 0.7714 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.2004, allocations: 135.5 kB / 0.7715 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.705e-05/0.2004, allocations: 20 kB / 0.7716 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.2008, allocations: 167.6 kB / 0.7717 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.2009, allocations: 79.78 kB / 0.7718 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2011, allocations: 115.5 kB / 0.7719 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.2016, allocations: 338.8 kB / 0.7722 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2016, allocations: 0 / 0.7722 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2016, allocations: 0 / 0.7722 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.2016, allocations: 0 / 0.7722 GB, free: 2.449 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008899/0.2025, allocations: 0.5142 MB / 0.7727 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2026, allocations: 12.03 kB / 0.7727 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.927e-05/0.2027, allocations: 62.7 kB / 0.7728 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000569/0.2032, allocations: 84.72 kB / 0.7729 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.2036, allocations: 240 kB / 0.7731 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2036, allocations: 12.75 kB / 0.7731 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.2036, allocations: 16.38 kB / 0.7731 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/0.2041, allocations: 311.3 kB / 0.7734 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2041, allocations: 0 / 0.7734 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.2042, allocations: 8 kB / 0.7734 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.053e-05/0.2042, allocations: 16.38 kB / 0.7735 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003341/0.2046, allocations: 200.9 kB / 0.7737 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.327/0.5316, allocations: 1.446 MB / 0.7751 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.5319, allocations: 176.3 kB / 0.7752 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.294e-05/0.532, allocations: 35.77 kB / 0.7753 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.532, allocations: 3.25 kB / 0.7753 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/0.532, allocations: 34.28 kB / 0.7753 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.532, allocations: 0.625 kB / 0.7753 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0004795/0.5325, allocations: 226.3 kB / 0.7755 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.5326, allocations: 56.38 kB / 0.7756 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.5328, allocations: 207.6 kB / 0.7758 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.5328, allocations: 27.08 kB / 0.7758 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.5329, allocations: 163.7 kB / 0.776 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.5329, allocations: 32.03 kB / 0.776 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.5329, allocations: 37.95 kB / 0.776 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.533, allocations: 323.6 kB / 0.7763 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.717e-05/0.5331, allocations: 38.56 kB / 0.7764 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.371e-05/0.5332, allocations: 99.27 kB / 0.7765 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.5333, allocations: 148.5 kB / 0.7766 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5333, allocations: 1.656 kB / 0.7766 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002858/0.5336, allocations: 195.4 kB / 0.7768 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.5336, allocations: 5.938 kB / 0.7768 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5337, allocations: 6.531 kB / 0.7768 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.5338, allocations: 28.72 kB / 0.7768 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.5339, allocations: 27.61 kB / 0.7769 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007602/0.5347, allocations: 1.418 MB / 0.7782 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.5348, allocations: 17.75 kB / 0.7783 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.5348, allocations: 11.09 kB / 0.7783 GB, free: 9.293 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.757e-05/0.535, allocations: 152.1 kB / 0.7784 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.535, allocations: 11.88 kB / 0.7784 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.535, allocations: 24.8 kB / 0.7784 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.535, allocations: 1.844 kB / 0.7785 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.535, allocations: 1.031 kB / 0.7785 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.535, allocations: 0.6562 kB / 0.7785 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004238/0.5355, allocations: 451.9 kB / 0.7789 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.5355, allocations: 4.812 kB / 0.7789 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.5355, allocations: 7 kB / 0.7789 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-05/0.5356, allocations: 21.92 kB / 0.7789 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.5356, allocations: 6.672 kB / 0.7789 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006396/0.5363, allocations: 1.414 MB / 0.7803 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5363, allocations: 3.812 kB / 0.7803 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.5365, allocations: 209.8 kB / 0.7805 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.5365, allocations: 98.5 kB / 0.7806 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.5365, allocations: 1 kB / 0.7806 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.5367, allocations: 7.922 kB / 0.7806 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.5367, allocations: 13.34 kB / 0.7806 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.5367, allocations: 5.188 kB / 0.7806 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001111/0.5368, allocations: 143.2 kB / 0.7808 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5368, allocations: 0 / 0.7808 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003385/0.5372, allocations: 51.44 kB / 0.7808 GB, free: 7.164 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003378/0.5375, allocations: 0.7504 MB / 0.7815 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003299/0.5379, allocations: 204 kB / 0.7817 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5379, allocations: 0 / 0.7817 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.538, allocations: 144.8 kB / 0.7819 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.5384, allocations: 37.19 kB / 0.7819 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.5402, allocations: 2.052 MB / 0.7839 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006606/0.5408, allocations: 0.7548 MB / 0.7847 GB, free: 20.15 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.733e-05/0.5409, allocations: 28.39 kB / 0.7847 GB, free: 20.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.541, allocations: 50.58 kB / 0.7847 GB, free: 20.14 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.541, allocations: 0.8125 kB / 0.7847 GB, free: 20.14 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.5703, allocations: 3.746 MB / 0.7884 GB, free: 19.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.376/9.946, allocations: 25.25 kB / 0.7884 GB, free: 19.62 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)