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.0009745/0.0009744, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006375/0.006375, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.303/1.303, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001674/0.001674, allocations: 259 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9094/0.9094, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004209, allocations: 11.59 kB / 0.5988 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1621, allocations: 88.54 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.004717/0.1669, allocations: 3.979 MB / 0.6891 GB, free: 10.99 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1696, allocations: 1.837 MB / 0.6909 GB, free: 9.152 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.1698, allocations: 7.938 kB / 0.6909 GB, free: 9.145 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.17, allocations: 79.91 kB / 0.691 GB, free: 9.066 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005312/0.1705, allocations: 249.5 kB / 0.6912 GB, free: 8.824 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005465/0.1711, allocations: 229.2 kB / 0.6914 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007714/0.1719, allocations: 0.8343 MB / 0.6923 GB, free: 7.766 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005024/0.1724, allocations: 439.1 kB / 0.6927 GB, free: 7.312 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.1726, allocations: 199.2 kB / 0.6929 GB, free: 7.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.173, allocations: 255 kB / 0.6931 GB, free: 6.867 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.1731, allocations: 20 kB / 0.6931 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004488/0.1735, allocations: 319.2 kB / 0.6934 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1737, allocations: 127.6 kB / 0.6936 GB, free: 6.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1739, allocations: 232.6 kB / 0.6938 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005788/0.1745, allocations: 0.5917 MB / 0.6944 GB, free: 5.582 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.1745, allocations: 0 / 0.6944 GB, free: 5.582 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1745, allocations: 0 / 0.6944 GB, free: 5.582 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1745, allocations: 0 / 0.6944 GB, free: 5.582 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.0009732/0.1755, allocations: 0.6552 MB / 0.695 GB, free: 4.879 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1755, allocations: 8.031 kB / 0.695 GB, free: 4.871 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.329e-05/0.1756, allocations: 78.7 kB / 0.6951 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009431/0.1765, allocations: 156.2 kB / 0.6952 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.1769, allocations: 334.5 kB / 0.6955 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.177, allocations: 25.36 kB / 0.6956 GB, free: 4.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/0.177, allocations: 36.38 kB / 0.6956 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000741/0.1778, allocations: 0.5355 MB / 0.6961 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1778, allocations: 0 / 0.6961 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.1779, allocations: 12 kB / 0.6961 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.062e-05/0.1779, allocations: 32.64 kB / 0.6962 GB, free: 3.598 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005656/0.1785, allocations: 386.3 kB / 0.6965 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.1809, allocations: 2.419 MB / 0.6989 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.1814, allocations: 268.9 kB / 0.6992 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1816, allocations: 112.8 kB / 0.6993 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.1816, allocations: 0 / 0.6993 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.1816, allocations: 34.56 kB / 0.6993 GB, free: 156 kB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.062e-06/0.1816, allocations: 4 kB / 0.6993 GB, free: 152 kB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002115/0.1837, allocations: 1.131 MB / 0.7004 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.1838, allocations: 59.41 kB / 0.7005 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.1841, allocations: 296.5 kB / 0.7007 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.1841, allocations: 33.7 kB / 0.7008 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.1843, allocations: 227.6 kB / 0.701 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.467e-05/0.1843, allocations: 86.75 kB / 0.7011 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.1844, allocations: 29.7 kB / 0.7011 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1845, allocations: 338.8 kB / 0.7014 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.1847, allocations: 104.6 kB / 0.7015 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.1849, allocations: 196.3 kB / 0.7017 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.1853, allocations: 317.2 kB / 0.702 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1853, allocations: 0 / 0.702 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006973/0.186, allocations: 445.3 kB / 0.7024 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.186, allocations: 6.031 kB / 0.7025 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.186, allocations: 7.938 kB / 0.7025 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/0.1864, allocations: 98.44 kB / 0.7026 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1866, allocations: 67.91 kB / 0.7026 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/0.1898, allocations: 4.072 MB / 0.7066 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.19, allocations: 8 kB / 0.7066 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.1901, allocations: 15.98 kB / 0.7066 GB, free: 8.027 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.000209/0.1903, allocations: 194.5 kB / 0.7068 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.758e-05/0.1904, allocations: 31.62 kB / 0.7068 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.324e-05/0.1905, allocations: 38.31 kB / 0.7069 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1905, allocations: 0 / 0.7069 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1905, allocations: 4 kB / 0.7069 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1905, allocations: 0 / 0.7069 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004528/0.1909, allocations: 405.3 kB / 0.7073 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1909, allocations: 4 kB / 0.7073 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.1911, allocations: 35.97 kB / 0.7073 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002935/0.1914, allocations: 90.44 kB / 0.7074 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1915, allocations: 4 kB / 0.7074 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.1944, allocations: 4.076 MB / 0.7114 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1944, allocations: 0 / 0.7114 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007751/0.1951, allocations: 0.5578 MB / 0.7119 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.1953, allocations: 128.7 kB / 0.712 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.1953, allocations: 4 kB / 0.712 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.1955, allocations: 12 kB / 0.712 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.1956, allocations: 23.97 kB / 0.7121 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.1956, allocations: 8 kB / 0.7121 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001908/0.1958, allocations: 211.1 kB / 0.7123 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1958, allocations: 0 / 0.7123 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004206/0.1962, allocations: 100 kB / 0.7124 GB, free: 1.613 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.001033/0.1973, allocations: 1.098 MB / 0.7134 GB, free: 492 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000784/0.198, allocations: 0.6035 MB / 0.714 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1981, allocations: 0 / 0.714 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004837/0.1985, allocations: 480.2 kB / 0.7145 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004969/0.1991, allocations: 85.36 kB / 0.7146 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.2031, allocations: 3.548 MB / 0.718 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.2035, allocations: 0.8309 MB / 0.7189 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001987/0.2037, allocations: 62.92 kB / 0.7189 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.2039, allocations: 115.4 kB / 0.719 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of SimCode: time 4.61e-07/0.2039, allocations: 0 / 0.719 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.2218, allocations: 7.251 MB / 0.7261 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/0.222, allocations: 238.4 kB / 0.7263 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/1.965, allocations: 3.938 kB / 0.7263 GB, free: 3.195 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)