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: translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001207/0.001207, allocations: 193.9 kB / 16.14 MB, free: 6.707 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.285/1.285, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001915/0.001915, allocations: 282.8 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9074/0.9074, allocations: 169.2 MB / 0.4977 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 96.72 kB / 0.5945 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1608, allocations: 86.99 MB / 0.6794 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005031/0.1659, allocations: 3.857 MB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.1682, allocations: 1.728 MB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1684, allocations: 5.719 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1695, allocations: 475.3 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003589/0.1699, allocations: 217.7 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.1703, allocations: 187 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.1709, allocations: 0.6738 MB / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.1712, allocations: 237.2 kB / 0.6866 GB, free: 9.801 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.1714, allocations: 163.4 kB / 0.6868 GB, free: 9.641 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.1717, allocations: 223.2 kB / 0.687 GB, free: 9.422 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.209e-05/0.1717, allocations: 20 kB / 0.687 GB, free: 9.402 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.1721, allocations: 307.3 kB / 0.6873 GB, free: 9.102 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1723, allocations: 115.7 kB / 0.6874 GB, free: 8.988 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.1724, allocations: 171.1 kB / 0.6876 GB, free: 8.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.1729, allocations: 0.4985 MB / 0.6881 GB, free: 8.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1729, allocations: 0 / 0.6881 GB, free: 8.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1729, allocations: 4 kB / 0.6881 GB, free: 8.316 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1729, allocations: 0 / 0.6881 GB, free: 8.316 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.0008685/0.1738, allocations: 0.6315 MB / 0.6887 GB, free: 7.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.1739, allocations: 12.03 kB / 0.6887 GB, free: 7.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008474/0.1747, allocations: 132.4 kB / 0.6888 GB, free: 7.496 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.175, allocations: 279.7 kB / 0.6891 GB, free: 7.184 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.1751, allocations: 21.03 kB / 0.6891 GB, free: 7.164 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.1751, allocations: 32.36 kB / 0.6891 GB, free: 7.133 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.1757, allocations: 463.9 kB / 0.6896 GB, free: 6.641 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1757, allocations: 4 kB / 0.6896 GB, free: 6.637 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.1758, allocations: 15.98 kB / 0.6896 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-05/0.1758, allocations: 24.55 kB / 0.6896 GB, free: 6.598 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.1763, allocations: 325.9 kB / 0.6899 GB, free: 6.281 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.1782, allocations: 2.197 MB / 0.6921 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.1786, allocations: 251.7 kB / 0.6923 GB, free: 3.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1788, allocations: 112.8 kB / 0.6924 GB, free: 3.484 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.1788, allocations: 4 kB / 0.6924 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.1789, allocations: 34.56 kB / 0.6925 GB, free: 3.438 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1789, allocations: 0 / 0.6925 GB, free: 3.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005376/0.1794, allocations: 299.5 kB / 0.6928 GB, free: 3.117 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.1795, allocations: 59.34 kB / 0.6928 GB, free: 3.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.1797, allocations: 266.5 kB / 0.6931 GB, free: 2.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1797, allocations: 33.7 kB / 0.6931 GB, free: 2.746 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1799, allocations: 203.9 kB / 0.6933 GB, free: 2.543 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.1799, allocations: 47.3 kB / 0.6933 GB, free: 2.496 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/0.18, allocations: 53.84 kB / 0.6934 GB, free: 2.434 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1801, allocations: 338.7 kB / 0.6937 GB, free: 2.094 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.219e-05/0.1802, allocations: 56.44 kB / 0.6938 GB, free: 2.039 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.1804, allocations: 145.7 kB / 0.6939 GB, free: 1.859 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.1806, allocations: 221.6 kB / 0.6941 GB, free: 1.605 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1806, allocations: 0 / 0.6941 GB, free: 1.605 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003775/0.181, allocations: 261.8 kB / 0.6944 GB, free: 1.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.181, allocations: 8 kB / 0.6944 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.181, allocations: 8.359 kB / 0.6944 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001372/0.1812, allocations: 28.84 kB / 0.6944 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.1814, allocations: 51.98 kB / 0.6945 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009379/0.1823, allocations: 1.315 MB / 0.6957 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.1825, allocations: 27.69 kB / 0.6958 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.1825, allocations: 12 kB / 0.6958 GB, free: 15.75 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.0001454/0.1826, allocations: 167 kB / 0.6959 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.318e-05/0.1827, allocations: 27.66 kB / 0.696 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.117e-05/0.1828, allocations: 33.92 kB / 0.696 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1828, allocations: 0 / 0.696 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.1828, allocations: 7.984 kB / 0.696 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1828, allocations: 0 / 0.696 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007978/0.1836, allocations: 0.7025 MB / 0.6967 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1836, allocations: 0 / 0.6967 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.466e-05/0.1837, allocations: 24.17 kB / 0.6967 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.192e-05/0.1838, allocations: 24.84 kB / 0.6967 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.1838, allocations: 3.938 kB / 0.6967 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008357/0.1846, allocations: 1.315 MB / 0.698 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1846, allocations: 4.031 kB / 0.698 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.1849, allocations: 317.2 kB / 0.6983 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-05/0.1851, allocations: 120.7 kB / 0.6985 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.1851, allocations: 12 kB / 0.6985 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.1852, allocations: 8 kB / 0.6985 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.1853, allocations: 15.92 kB / 0.6985 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.1853, allocations: 4 kB / 0.6985 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001688/0.1855, allocations: 194 kB / 0.6987 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.492e-06/0.1855, allocations: 0 / 0.6987 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003476/0.1858, allocations: 83.72 kB / 0.6988 GB, free: 12.42 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 8.914e-05/0.1859, allocations: 103.2 kB / 0.6989 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003983/0.1863, allocations: 268 kB / 0.6991 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.1863, allocations: 0.75 kB / 0.6991 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.1866, allocations: 190.5 kB / 0.6993 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.187, allocations: 53.91 kB / 0.6993 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008764/0.1879, allocations: 0.6485 MB / 0.7 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.1883, allocations: 0.795 MB / 0.7008 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001383/0.1885, allocations: 42.27 kB / 0.7008 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.1885, allocations: 23.38 kB / 0.7008 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1885, allocations: 0 / 0.7008 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.005634/0.1941, allocations: 2.6 MB / 0.7034 GB, free: 7.637 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)