Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",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.001107/0.001107, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001105/0.001105, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 286.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9334/0.9334, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 91.89 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1623, allocations: 86.98 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005654/0.168, allocations: 4.379 MB / 0.684 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.1707, allocations: 1.847 MB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.171, allocations: 11.94 kB / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.1725, allocations: 0.5568 MB / 0.6864 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004959/0.173, allocations: 238.8 kB / 0.6866 GB, free: 9.926 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.1735, allocations: 238.3 kB / 0.6868 GB, free: 9.695 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006554/0.1742, allocations: 0.6112 MB / 0.6874 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007567/0.175, allocations: 0.4988 MB / 0.6879 GB, free: 8.582 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.1752, allocations: 251.1 kB / 0.6881 GB, free: 8.336 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003902/0.1756, allocations: 283 kB / 0.6884 GB, free: 8.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.1757, allocations: 36 kB / 0.6884 GB, free: 8.023 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.176, allocations: 255.4 kB / 0.6887 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.1762, allocations: 151.7 kB / 0.6888 GB, free: 7.625 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.1764, allocations: 214.9 kB / 0.689 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006359/0.177, allocations: 0.6268 MB / 0.6897 GB, free: 6.785 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.177, allocations: 4 kB / 0.6897 GB, free: 6.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.177, allocations: 0 / 0.6897 GB, free: 6.781 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.177, allocations: 0 / 0.6897 GB, free: 6.781 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001148/0.1782, allocations: 0.7213 MB / 0.6904 GB, free: 6.012 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1782, allocations: 12.03 kB / 0.6904 GB, free: 6 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.758e-05/0.1783, allocations: 70.72 kB / 0.6904 GB, free: 5.922 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009276/0.1793, allocations: 152.2 kB / 0.6906 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.1797, allocations: 326.6 kB / 0.6909 GB, free: 5.418 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.1797, allocations: 29.36 kB / 0.6909 GB, free: 5.391 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.1798, allocations: 36.31 kB / 0.691 GB, free: 5.355 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007893/0.1806, allocations: 0.5355 MB / 0.6915 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1806, allocations: 3.938 kB / 0.6915 GB, free: 4.781 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.1807, allocations: 15.98 kB / 0.6915 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-05/0.1807, allocations: 32.64 kB / 0.6915 GB, free: 4.734 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005621/0.1813, allocations: 386.3 kB / 0.6919 GB, free: 4.355 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.1838, allocations: 2.407 MB / 0.6943 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.1843, allocations: 266.5 kB / 0.6945 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1844, allocations: 108.8 kB / 0.6946 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.1845, allocations: 4 kB / 0.6946 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1845, allocations: 38.56 kB / 0.6947 GB, free: 1.297 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.1845, allocations: 0 / 0.6947 GB, free: 1.297 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002351/0.1869, allocations: 1.127 MB / 0.6958 GB, free: 76 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.1869, allocations: 55.41 kB / 0.6958 GB, free: 8 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.1873, allocations: 312.3 kB / 0.6961 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.1874, allocations: 29.7 kB / 0.6961 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.1876, allocations: 231.6 kB / 0.6964 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.725e-05/0.1876, allocations: 78.75 kB / 0.6964 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1878, allocations: 66.03 kB / 0.6965 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001989/0.188, allocations: 338.8 kB / 0.6968 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.1881, allocations: 100.6 kB / 0.6969 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.1884, allocations: 200.3 kB / 0.6971 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.1889, allocations: 313.1 kB / 0.6974 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1889, allocations: 4 kB / 0.6974 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007996/0.1897, allocations: 449.2 kB / 0.6978 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1897, allocations: 8.062 kB / 0.6978 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1897, allocations: 4 kB / 0.6978 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004406/0.1902, allocations: 94.5 kB / 0.6979 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.1905, allocations: 63.91 kB / 0.698 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003685/0.1942, allocations: 4.392 MB / 0.7023 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.1944, allocations: 11.98 kB / 0.7023 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1944, allocations: 12 kB / 0.7023 GB, free: 8.805 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002161/0.1947, allocations: 181.8 kB / 0.7025 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.1947, allocations: 35.56 kB / 0.7025 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.1948, allocations: 38.31 kB / 0.7025 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1948, allocations: 0 / 0.7025 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.1948, allocations: 4 kB / 0.7026 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.1948, allocations: 0 / 0.7026 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004904/0.1953, allocations: 401.4 kB / 0.7029 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1954, allocations: 7.938 kB / 0.7029 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.1955, allocations: 35.91 kB / 0.703 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002936/0.1959, allocations: 98.5 kB / 0.7031 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.1959, allocations: 0 / 0.7031 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003038/0.1989, allocations: 4.38 MB / 0.7073 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.1989, allocations: 7.922 kB / 0.7074 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007566/0.1997, allocations: 0.5634 MB / 0.7079 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.1998, allocations: 128.7 kB / 0.708 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/0.1999, allocations: 4 kB / 0.708 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.2001, allocations: 11.98 kB / 0.708 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.2002, allocations: 20.05 kB / 0.7081 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.2002, allocations: 8 kB / 0.7081 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002053/0.2004, allocations: 215 kB / 0.7083 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.2004, allocations: 0 / 0.7083 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001183/0.2016, allocations: 92 kB / 0.7084 GB, free: 2.066 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001099/0.2027, allocations: 1.104 MB / 0.7094 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008604/0.2036, allocations: 0.6289 MB / 0.7101 GB, free: 268 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2036, allocations: 4 kB / 0.7101 GB, free: 264 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004852/0.2041, allocations: 476.2 kB / 0.7105 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.2046, allocations: 77.89 kB / 0.7106 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.2086, allocations: 3.52 MB / 0.714 GB, free: 12 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.209, allocations: 0.835 MB / 0.7148 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000207/0.2092, allocations: 58.94 kB / 0.7149 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.2094, allocations: 115.3 kB / 0.715 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.2094, allocations: 0 / 0.715 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.2361, allocations: 7.611 MB / 0.7224 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.2363, allocations: 221.3 kB / 0.7227 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.156, allocations: 0 / 0.7227 GB, free: 3.312 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)