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.000995/0.000995, 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.001083/0.001083, allocations: 195.5 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002091/0.002091, allocations: 283 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.981/0.981, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002904/0.002904, allocations: 94.47 kB / 0.5953 GB, free: 27.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1622, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.00616/0.1684, allocations: 3.821 MB / 0.684 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.1711, allocations: 1.737 MB / 0.6857 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.1714, allocations: 11.94 kB / 0.6857 GB, free: 11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.1727, allocations: 0.4966 MB / 0.6862 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.1733, allocations: 210.9 kB / 0.6864 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.1738, allocations: 211.5 kB / 0.6866 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005071/0.1743, allocations: 474.4 kB / 0.6871 GB, free: 9.625 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005338/0.1749, allocations: 365.2 kB / 0.6874 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.1751, allocations: 187.4 kB / 0.6876 GB, free: 9.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003685/0.1755, allocations: 219.1 kB / 0.6878 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.207e-05/0.1756, allocations: 28 kB / 0.6878 GB, free: 8.844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.176, allocations: 239.5 kB / 0.6881 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.1761, allocations: 131.6 kB / 0.6882 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.1763, allocations: 171.2 kB / 0.6883 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.1769, allocations: 0.4945 MB / 0.6888 GB, free: 7.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1769, allocations: 8 kB / 0.6888 GB, free: 7.809 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1769, allocations: 3.938 kB / 0.6888 GB, free: 7.805 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1769, allocations: 0 / 0.6888 GB, free: 7.805 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.0009476/0.1779, allocations: 0.6199 MB / 0.6894 GB, free: 7.137 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1779, allocations: 11.97 kB / 0.6895 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.378e-05/0.178, allocations: 78.64 kB / 0.6895 GB, free: 7.039 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000901/0.1789, allocations: 132.4 kB / 0.6897 GB, free: 6.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.1793, allocations: 291.6 kB / 0.6899 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.1793, allocations: 17.03 kB / 0.6899 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.1793, allocations: 28.38 kB / 0.69 GB, free: 6.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.18, allocations: 467.7 kB / 0.6904 GB, free: 6.047 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.18, allocations: 3.938 kB / 0.6904 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.18, allocations: 12 kB / 0.6904 GB, free: 6.031 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.672e-05/0.1801, allocations: 28.55 kB / 0.6905 GB, free: 6.004 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.1806, allocations: 321.9 kB / 0.6908 GB, free: 5.691 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.1826, allocations: 2.181 MB / 0.6929 GB, free: 3.297 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.1829, allocations: 263.7 kB / 0.6932 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002342/0.1832, allocations: 104.8 kB / 0.6933 GB, free: 2.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.1832, allocations: 0 / 0.6933 GB, free: 2.906 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.1832, allocations: 42.56 kB / 0.6933 GB, free: 2.855 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.1832, allocations: 0 / 0.6933 GB, free: 2.855 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005596/0.1838, allocations: 295.5 kB / 0.6936 GB, free: 2.539 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.1838, allocations: 55.41 kB / 0.6936 GB, free: 2.473 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.1841, allocations: 274.5 kB / 0.6939 GB, free: 2.203 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.853e-05/0.1841, allocations: 29.7 kB / 0.6939 GB, free: 2.168 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1842, allocations: 207.9 kB / 0.6941 GB, free: 1.961 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.1843, allocations: 51.2 kB / 0.6942 GB, free: 1.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/0.1844, allocations: 45.95 kB / 0.6942 GB, free: 1.855 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.1845, allocations: 334.8 kB / 0.6945 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.637e-05/0.1846, allocations: 56.44 kB / 0.6946 GB, free: 1.465 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.1847, allocations: 150.5 kB / 0.6947 GB, free: 1.285 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.185, allocations: 221.7 kB / 0.6949 GB, free: 1.031 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.185, allocations: 4 kB / 0.6949 GB, free: 1.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004065/0.1854, allocations: 261.9 kB / 0.6952 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1854, allocations: 4 kB / 0.6952 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1854, allocations: 7.938 kB / 0.6952 GB, free: 0.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.1856, allocations: 29.22 kB / 0.6952 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.1858, allocations: 47.92 kB / 0.6953 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009921/0.1868, allocations: 1.426 MB / 0.6967 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.187, allocations: 31.69 kB / 0.6967 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.187, allocations: 8 kB / 0.6967 GB, free: 15.06 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.0001411/0.1871, allocations: 171.3 kB / 0.6969 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.1872, allocations: 31.66 kB / 0.6969 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/0.1872, allocations: 29.83 kB / 0.6969 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1872, allocations: 0 / 0.6969 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1873, allocations: 4 kB / 0.6969 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1873, allocations: 0 / 0.6969 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008333/0.1881, allocations: 0.7024 MB / 0.6976 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1881, allocations: 0 / 0.6976 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.095e-05/0.1882, allocations: 27.92 kB / 0.6976 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-05/0.1883, allocations: 32.97 kB / 0.6977 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.1883, allocations: 0 / 0.6977 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008905/0.1892, allocations: 1.418 MB / 0.6991 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1892, allocations: 4.031 kB / 0.6991 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.1896, allocations: 317.1 kB / 0.6994 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.524e-05/0.1897, allocations: 108.8 kB / 0.6995 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.1897, allocations: 8 kB / 0.6995 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.1899, allocations: 7.984 kB / 0.6995 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.1899, allocations: 23.92 kB / 0.6995 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.1899, allocations: 4 kB / 0.6995 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001716/0.1901, allocations: 194 kB / 0.6997 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.383e-06/0.1901, allocations: 0 / 0.6997 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003765/0.1905, allocations: 83.69 kB / 0.6998 GB, free: 11.62 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.0005431/0.191, allocations: 0.8406 MB / 0.7006 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004244/0.1915, allocations: 290.3 kB / 0.7009 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1915, allocations: 0 / 0.7009 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.1917, allocations: 183.6 kB / 0.701 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.1922, allocations: 78.78 kB / 0.7011 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.195, allocations: 2.701 MB / 0.7038 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.1953, allocations: 0.7985 MB / 0.7045 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001448/0.1955, allocations: 46.25 kB / 0.7046 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1956, allocations: 83.41 kB / 0.7047 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.1956, allocations: 3.938 kB / 0.7047 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.2208, allocations: 5.292 MB / 0.7098 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.24, allocations: 7.859 kB / 0.7098 GB, free: 1.176 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)