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.001367/0.001367, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001489/0.001489, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.312/1.312, 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.002087/0.002087, allocations: 286.4 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9523/0.9523, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 90.28 kB / 0.5948 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1519, allocations: 86.98 MB / 0.6797 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.004944/0.1569, allocations: 3.859 MB / 0.6835 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.1592, allocations: 1.722 MB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1593, allocations: 7.938 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.1606, allocations: 476 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003978/0.161, allocations: 207.1 kB / 0.6858 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.1615, allocations: 194.2 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00043/0.1619, allocations: 474.4 kB / 0.6865 GB, free: 9.996 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000531/0.1624, allocations: 409.1 kB / 0.6869 GB, free: 9.598 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.1626, allocations: 191.4 kB / 0.687 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003048/0.1629, allocations: 227.2 kB / 0.6873 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/0.163, allocations: 28 kB / 0.6873 GB, free: 9.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.1633, allocations: 239.4 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.1634, allocations: 127.7 kB / 0.6876 GB, free: 8.801 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1636, allocations: 171.2 kB / 0.6878 GB, free: 8.633 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.1641, allocations: 0.5139 MB / 0.6883 GB, free: 8.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1641, allocations: 7.984 kB / 0.6883 GB, free: 8.109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1641, allocations: 0 / 0.6883 GB, free: 8.109 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1641, allocations: 4 kB / 0.6883 GB, free: 8.105 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.0008252/0.1649, allocations: 0.6238 MB / 0.6889 GB, free: 7.434 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.165, allocations: 12.03 kB / 0.6889 GB, free: 7.422 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.074e-05/0.1651, allocations: 70.72 kB / 0.689 GB, free: 7.344 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008504/0.1659, allocations: 128.4 kB / 0.6891 GB, free: 7.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.1662, allocations: 287.6 kB / 0.6894 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.1663, allocations: 25.02 kB / 0.6894 GB, free: 6.875 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.1663, allocations: 32.36 kB / 0.6895 GB, free: 6.844 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.1669, allocations: 463.7 kB / 0.6899 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1669, allocations: 3.938 kB / 0.6899 GB, free: 6.348 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.167, allocations: 12 kB / 0.6899 GB, free: 6.336 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-05/0.167, allocations: 32.53 kB / 0.6899 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.1675, allocations: 321.9 kB / 0.6903 GB, free: 5.992 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.1695, allocations: 2.185 MB / 0.6924 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.1699, allocations: 259.7 kB / 0.6926 GB, free: 3.312 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.1701, allocations: 108.8 kB / 0.6927 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.1701, allocations: 4 kB / 0.6927 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.1702, allocations: 38.56 kB / 0.6928 GB, free: 3.152 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.1702, allocations: 0 / 0.6928 GB, free: 3.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005566/0.1707, allocations: 299.5 kB / 0.6931 GB, free: 2.832 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1708, allocations: 55.41 kB / 0.6931 GB, free: 2.766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.171, allocations: 270.5 kB / 0.6934 GB, free: 2.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1711, allocations: 33.7 kB / 0.6934 GB, free: 2.461 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1712, allocations: 199.9 kB / 0.6936 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.1712, allocations: 51.27 kB / 0.6936 GB, free: 2.211 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.734e-05/0.1713, allocations: 45.94 kB / 0.6937 GB, free: 2.156 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1714, allocations: 338.8 kB / 0.694 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-05/0.1715, allocations: 56.44 kB / 0.6941 GB, free: 1.762 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.1717, allocations: 145.6 kB / 0.6942 GB, free: 1.582 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1719, allocations: 218.9 kB / 0.6944 GB, free: 1.328 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1719, allocations: 7.875 kB / 0.6944 GB, free: 1.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003886/0.1723, allocations: 255.4 kB / 0.6947 GB, free: 1.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1724, allocations: 11.98 kB / 0.6947 GB, free: 1.051 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1724, allocations: 4.375 kB / 0.6947 GB, free: 1.047 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.1725, allocations: 28.84 kB / 0.6947 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1727, allocations: 47.92 kB / 0.6948 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009833/0.1737, allocations: 1.422 MB / 0.6961 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1739, allocations: 23.69 kB / 0.6962 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1739, allocations: 12 kB / 0.6962 GB, free: 15.37 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.00014/0.174, allocations: 170.4 kB / 0.6963 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.1741, allocations: 23.72 kB / 0.6964 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.1741, allocations: 33.83 kB / 0.6964 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1741, allocations: 0 / 0.6964 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1741, allocations: 4 kB / 0.6964 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1742, allocations: 3.984 kB / 0.6964 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000789/0.1749, allocations: 0.7024 MB / 0.6971 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.175, allocations: 0 / 0.6971 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.571e-05/0.1751, allocations: 28.11 kB / 0.6971 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.621e-05/0.1751, allocations: 32.97 kB / 0.6971 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1752, allocations: 8 kB / 0.6972 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008822/0.176, allocations: 1.415 MB / 0.6985 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1761, allocations: 4.031 kB / 0.6985 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.1764, allocations: 321.2 kB / 0.6988 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.489e-05/0.1765, allocations: 116.7 kB / 0.699 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.1765, allocations: 8 kB / 0.699 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.1767, allocations: 7.984 kB / 0.699 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/0.1767, allocations: 19.94 kB / 0.699 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.1767, allocations: 4 kB / 0.699 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001643/0.1769, allocations: 193.9 kB / 0.6992 GB, free: 12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1769, allocations: 0 / 0.6992 GB, free: 12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003636/0.1773, allocations: 83.75 kB / 0.6993 GB, free: 11.91 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.000588/0.1779, allocations: 0.8448 MB / 0.7001 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004122/0.1783, allocations: 286.3 kB / 0.7004 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1783, allocations: 0 / 0.7004 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.1785, allocations: 187.7 kB / 0.7005 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.179, allocations: 68.33 kB / 0.7006 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.1817, allocations: 2.823 MB / 0.7034 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.182, allocations: 0.7985 MB / 0.7041 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001397/0.1822, allocations: 46.2 kB / 0.7042 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.1823, allocations: 83.41 kB / 0.7043 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1823, allocations: 0 / 0.7043 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.2006, allocations: 5.211 MB / 0.7094 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.2008, allocations: 233.2 kB / 0.7096 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/1.994, allocations: 4 kB / 0.7096 GB, free: 1.227 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)