Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",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.0009738/0.0009739, 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.008367/0.008367, 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00165/0.00165, allocations: 267 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9328/0.9328, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003982, allocations: 18.64 kB / 0.5988 GB, free: 27.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1521, allocations: 88.54 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.003953/0.1561, allocations: 3.476 MB / 0.6886 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1584, allocations: 1.713 MB / 0.6903 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.1586, allocations: 4 kB / 0.6903 GB, free: 9.777 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.1588, allocations: 59.5 kB / 0.6904 GB, free: 9.719 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004663/0.1593, allocations: 217.2 kB / 0.6906 GB, free: 9.508 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.1597, allocations: 193.1 kB / 0.6907 GB, free: 9.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.1603, allocations: 0.6622 MB / 0.6914 GB, free: 8.656 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003753/0.1607, allocations: 314.8 kB / 0.6917 GB, free: 8.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.1609, allocations: 151.4 kB / 0.6918 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.1612, allocations: 203.2 kB / 0.692 GB, free: 7.996 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.1612, allocations: 16 kB / 0.6921 GB, free: 7.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003941/0.1616, allocations: 307.3 kB / 0.6923 GB, free: 7.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.1617, allocations: 107.7 kB / 0.6924 GB, free: 7.574 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.1619, allocations: 180.8 kB / 0.6926 GB, free: 7.391 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.1624, allocations: 0.4945 MB / 0.6931 GB, free: 6.895 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1624, allocations: 3.938 kB / 0.6931 GB, free: 6.891 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1624, allocations: 4 kB / 0.6931 GB, free: 6.887 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1624, allocations: 0 / 0.6931 GB, free: 6.887 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007874/0.1632, allocations: 0.5692 MB / 0.6937 GB, free: 6.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1633, allocations: 8.031 kB / 0.6937 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.413e-05/0.1633, allocations: 74.7 kB / 0.6937 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000861/0.1642, allocations: 140.4 kB / 0.6939 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.1645, allocations: 283.6 kB / 0.6941 GB, free: 5.727 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1646, allocations: 21.03 kB / 0.6942 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.1646, allocations: 24.38 kB / 0.6942 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006194/0.1652, allocations: 475.7 kB / 0.6946 GB, free: 5.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1653, allocations: 3.938 kB / 0.6946 GB, free: 5.176 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.1653, allocations: 12 kB / 0.6947 GB, free: 5.164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-05/0.1654, allocations: 28.55 kB / 0.6947 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.1658, allocations: 329.9 kB / 0.695 GB, free: 4.816 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.1678, allocations: 2.189 MB / 0.6971 GB, free: 2.414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004739/0.1683, allocations: 251.8 kB / 0.6974 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.1687, allocations: 117.4 kB / 0.6975 GB, free: 2.023 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.1687, allocations: 4 kB / 0.6975 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.1687, allocations: 30.56 kB / 0.6975 GB, free: 1.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.704e-06/0.1687, allocations: 0 / 0.6975 GB, free: 1.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005882/0.1693, allocations: 301.9 kB / 0.6978 GB, free: 1.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.1694, allocations: 55.41 kB / 0.6979 GB, free: 1.594 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.1696, allocations: 266.6 kB / 0.6981 GB, free: 1.332 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1696, allocations: 29.7 kB / 0.6981 GB, free: 1.297 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.1698, allocations: 199.8 kB / 0.6983 GB, free: 1.098 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.889e-05/0.1699, allocations: 55.28 kB / 0.6984 GB, free: 1.043 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.1699, allocations: 25.72 kB / 0.6984 GB, free: 1.012 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1701, allocations: 338.7 kB / 0.6987 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.416e-05/0.1702, allocations: 52.44 kB / 0.6988 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1703, allocations: 153.9 kB / 0.6989 GB, free: 440 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.1706, allocations: 223 kB / 0.6991 GB, free: 176 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1706, allocations: 0 / 0.6991 GB, free: 176 kB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004081/0.171, allocations: 272.2 kB / 0.6994 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.171, allocations: 8 kB / 0.6994 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.171, allocations: 4.094 kB / 0.6994 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.1712, allocations: 24.78 kB / 0.6994 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1714, allocations: 51.92 kB / 0.6995 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.1724, allocations: 1.323 MB / 0.7008 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1726, allocations: 27.72 kB / 0.7008 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1726, allocations: 16 kB / 0.7008 GB, free: 14.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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 0.0001713/0.1728, allocations: 170.5 kB / 0.701 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.1728, allocations: 27.66 kB / 0.701 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.22e-05/0.1729, allocations: 25.83 kB / 0.701 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1729, allocations: 4 kB / 0.701 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1729, allocations: 0 / 0.701 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1729, allocations: 0 / 0.701 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.1738, allocations: 0.6986 MB / 0.7017 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1738, allocations: 4 kB / 0.7017 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.265e-05/0.1739, allocations: 19.94 kB / 0.7017 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.986e-05/0.174, allocations: 29.03 kB / 0.7018 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.1741, allocations: 11.98 kB / 0.7018 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008627/0.1749, allocations: 1.319 MB / 0.7031 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.1749, allocations: 4.031 kB / 0.7031 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.1753, allocations: 321.1 kB / 0.7034 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.537e-05/0.1754, allocations: 112.8 kB / 0.7035 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.1754, allocations: 8 kB / 0.7035 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.1756, allocations: 7.984 kB / 0.7035 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.1756, allocations: 19.97 kB / 0.7035 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.1756, allocations: 8 kB / 0.7035 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000173/0.1758, allocations: 193.9 kB / 0.7037 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.234e-06/0.1758, allocations: 0 / 0.7037 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003873/0.1762, allocations: 79.78 kB / 0.7038 GB, free: 10.97 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0005322/0.1767, allocations: 0.8436 MB / 0.7046 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003976/0.1772, allocations: 272.8 kB / 0.7049 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1772, allocations: 96 / 0.7049 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.1774, allocations: 194.4 kB / 0.7051 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.1779, allocations: 63.7 kB / 0.7051 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.1807, allocations: 2.828 MB / 0.7079 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.181, allocations: 0.7985 MB / 0.7087 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001444/0.1812, allocations: 42.27 kB / 0.7087 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1813, allocations: 83.41 kB / 0.7088 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of SimCode: time 7.61e-07/0.1813, allocations: 0 / 0.7088 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0161/0.1974, allocations: 5 MB / 0.7137 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.1976, allocations: 232.1 kB / 0.7139 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.91, allocations: 0 / 0.7139 GB, free: 0.5078 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)