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.001101/0.001101, 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.001105/0.001105, allocations: 194.2 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002269/0.002269, allocations: 291 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9297/0.9297, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 96.28 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1508, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.00583/0.1567, allocations: 4.332 MB / 0.6845 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.1598, allocations: 1.867 MB / 0.6863 GB, free: 10.4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003254/0.1602, allocations: 11.94 kB / 0.6863 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.1619, allocations: 0.5915 MB / 0.6869 GB, free: 9.793 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007591/0.1627, allocations: 262.6 kB / 0.6872 GB, free: 9.535 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006972/0.1634, allocations: 262.2 kB / 0.6874 GB, free: 9.281 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007776/0.1642, allocations: 0.6035 MB / 0.688 GB, free: 8.676 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007312/0.1649, allocations: 466.8 kB / 0.6885 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.1653, allocations: 251.2 kB / 0.6887 GB, free: 7.973 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/0.1658, allocations: 271 kB / 0.689 GB, free: 7.707 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.791e-05/0.1659, allocations: 36 kB / 0.689 GB, free: 7.672 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005107/0.1664, allocations: 255.4 kB / 0.6892 GB, free: 7.422 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.1666, allocations: 143.7 kB / 0.6894 GB, free: 7.281 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.1668, allocations: 218.9 kB / 0.6896 GB, free: 7.066 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007383/0.1676, allocations: 0.6074 MB / 0.6902 GB, free: 6.457 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1676, allocations: 4 kB / 0.6902 GB, free: 6.453 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1676, allocations: 0 / 0.6902 GB, free: 6.453 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.1676, allocations: 0 / 0.6902 GB, free: 6.453 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.001288/0.1689, allocations: 0.7174 MB / 0.6909 GB, free: 5.688 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.169, allocations: 12.03 kB / 0.6909 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.797e-05/0.1691, allocations: 78.7 kB / 0.691 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009945/0.1701, allocations: 156.2 kB / 0.6911 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.1705, allocations: 322.5 kB / 0.6914 GB, free: 5.086 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.1706, allocations: 29.38 kB / 0.6914 GB, free: 5.059 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.1706, allocations: 32.31 kB / 0.6915 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.1714, allocations: 0.5355 MB / 0.692 GB, free: 4.461 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1715, allocations: 0 / 0.692 GB, free: 4.461 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.1715, allocations: 16 kB / 0.692 GB, free: 4.445 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.222e-05/0.1716, allocations: 32.62 kB / 0.692 GB, free: 4.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006062/0.1722, allocations: 386.3 kB / 0.6924 GB, free: 4.035 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.1747, allocations: 2.415 MB / 0.6948 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.1753, allocations: 272.3 kB / 0.695 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1755, allocations: 108.8 kB / 0.6951 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.1755, allocations: 4 kB / 0.6951 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.1755, allocations: 30.56 kB / 0.6952 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.1755, allocations: 0 / 0.6952 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002193/0.1777, allocations: 1.126 MB / 0.6963 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.1778, allocations: 55.41 kB / 0.6963 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.1781, allocations: 308.4 kB / 0.6966 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.1781, allocations: 29.7 kB / 0.6966 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.1783, allocations: 231.6 kB / 0.6969 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.1783, allocations: 86.66 kB / 0.697 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.353e-05/0.1784, allocations: 58.03 kB / 0.697 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1786, allocations: 338.8 kB / 0.6973 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1787, allocations: 108.5 kB / 0.6974 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.179, allocations: 192.3 kB / 0.6976 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.1794, allocations: 329.3 kB / 0.6979 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1794, allocations: 0 / 0.6979 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007274/0.1801, allocations: 441.5 kB / 0.6984 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1801, allocations: 7.938 kB / 0.6984 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1801, allocations: 4 kB / 0.6984 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003396/0.1805, allocations: 102.5 kB / 0.6985 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.1808, allocations: 59.91 kB / 0.6985 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.1841, allocations: 4.391 MB / 0.7028 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.1843, allocations: 11.98 kB / 0.7028 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.1843, allocations: 16 kB / 0.7028 GB, free: 8.469 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.0002007/0.1845, allocations: 182.6 kB / 0.703 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.1846, allocations: 35.56 kB / 0.703 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.616e-05/0.1847, allocations: 42.31 kB / 0.7031 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1847, allocations: 0 / 0.7031 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.1847, allocations: 4 kB / 0.7031 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1847, allocations: 0 / 0.7031 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000469/0.1852, allocations: 393.4 kB / 0.7035 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1852, allocations: 7.938 kB / 0.7035 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.1854, allocations: 35.98 kB / 0.7035 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003016/0.1857, allocations: 98.42 kB / 0.7036 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.1858, allocations: 4 kB / 0.7036 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/0.1891, allocations: 4.376 MB / 0.7079 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1891, allocations: 3.938 kB / 0.7079 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008152/0.1899, allocations: 0.5672 MB / 0.7084 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1901, allocations: 124.9 kB / 0.7086 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.1901, allocations: 4 kB / 0.7086 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.1903, allocations: 12 kB / 0.7086 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.1904, allocations: 24.02 kB / 0.7086 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1904, allocations: 8 kB / 0.7086 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000222/0.1906, allocations: 215 kB / 0.7088 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1906, allocations: 0 / 0.7088 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004916/0.1911, allocations: 100 kB / 0.7089 GB, free: 1.727 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.001104/0.1923, allocations: 1.099 MB / 0.71 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008823/0.1932, allocations: 0.625 MB / 0.7106 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1932, allocations: 0 / 0.7106 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000515/0.1937, allocations: 480.2 kB / 0.711 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.1942, allocations: 79.53 kB / 0.7111 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.1985, allocations: 3.381 MB / 0.7144 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.1989, allocations: 0.8311 MB / 0.7152 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002057/0.1991, allocations: 58.94 kB / 0.7153 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.1992, allocations: 107.4 kB / 0.7154 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of SimCode: time 2.11e-07/0.1992, allocations: 0 / 0.7154 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.2365, allocations: 7.658 MB / 0.7229 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.585/9.821, allocations: 3.938 kB / 0.7229 GB, free: 3.285 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)